Ethan Furman added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18924>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to