[issue24254] Make class definition namespace ordered by default
Ethan Furman
report at bugs.python.org
Sat Sep 10 02:46:28 EDT 2016
Ethan Furman added the comment:
Not having a __definition_order__ could be a disadvantage for classes making use of __getattr__ for virtual attributes, such as Enum and proxy classes.
With __definition_order__, and __dir__, Enum could present a coherent view; without it it's a big jumbled mess with many attributes the user never wrote.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24254>
_______________________________________
More information about the Python-bugs-list
mailing list