[issue45535] Enum's dir() does not contain inherited members
Ethan Furman
report at bugs.python.org
Fri Oct 29 12:55:08 EDT 2021
Ethan Furman <ethan at stoneleaf.us> added the comment:
Enums have had a custom dir() from the beginning, partly because they are not standard objects and do not follow standard rules.
The question posed by this issue is whether Enums with mixed-in data types should show the inherited methods, and if yes, should it also show inherited `__dunders__`.
I'm inclined to say yes for the normal inherited methods, I'm not sure about inherited `__dunders__`.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45535>
_______________________________________
More information about the Python-bugs-list
mailing list