This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients barry, eli.bendersky, eric.snow, ethan.furman, pitrou
Date 2013-09-06.14:13:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378476815.53.0.380323526128.issue18924@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-09-06 14:13:35ethan.furmansetrecipients: + ethan.furman, barry, pitrou, eli.bendersky, eric.snow
2013-09-06 14:13:35ethan.furmansetmessageid: <1378476815.53.0.380323526128.issue18924@psf.upfronthosting.co.za>
2013-09-06 14:13:35ethan.furmanlinkissue18924 messages
2013-09-06 14:13:35ethan.furmancreate