Message197073
In retrospect the read-only properties would not be any more difficult to get around than the __setattr__ solution, and it would conflict with our use of _RouteClassAttributeToGetattr.
To properly replace an enum member one has to change two internal data structures:
_member_map_ -> 'enum_name' : member
_member2value_map -> enum_value : member # if hashable
To actually create a real (non-mock) member is even more work. |
|
Date |
User |
Action |
Args |
2013-09-06 14:13:35 | ethan.furman | set | recipients:
+ ethan.furman, barry, pitrou, eli.bendersky, eric.snow |
2013-09-06 14:13:35 | ethan.furman | set | messageid: <1378476815.53.0.380323526128.issue18924@psf.upfronthosting.co.za> |
2013-09-06 14:13:35 | ethan.furman | link | issue18924 messages |
2013-09-06 14:13:35 | ethan.furman | create | |
|