[issue19011] Enum should have a __getattr__ that makes all the instances available from an instance

Ethan Furman report at bugs.python.org
Wed Sep 25 05:08:01 CEST 2013


Ethan Furman added the comment:

As discussed on PyDev[1], Enum members are bonafide class attributes, as in they show on the class, not on the instances.

Documentation patch attached.

[1] https://mail.python.org/pipermail/python-dev/2013-September/128874.html

----------
stage:  -> patch review
type:  -> behavior
Added file: http://bugs.python.org/file31863/issue19011.stoneleaf.01.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19011>
_______________________________________


More information about the Python-bugs-list mailing list