[docs] [issue34487] enum _sunder_ names mix metaclass and enum class attributes

Ethan Furman report at bugs.python.org
Mon Aug 27 18:27:19 EDT 2018


Ethan Furman <ethan at stoneleaf.us> added the comment:

All those attributes live in the Enum class.  If you use a non-existent attribute, such as _name, then the metaclass will be called to check if that name is actually an Enum member.

----------
assignee: docs at python -> ethan.furman
nosy: +ethan.furman

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34487>
_______________________________________


More information about the docs mailing list