This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients ethan.furman, typish, xtreak
Date 2019-10-05.13:36:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570282618.83.0.839171762738.issue38375@roundup.psfhosted.org>
In-reply-to
Content
https://docs.python.org/3/library/enum.html#allowed-members-and-attributes-of-enumerations

> The rules for what is allowed are as follows: names that start and end with a single underscore are reserved by enum and cannot be used; all other attributes defined within an enumeration will become members of this enumeration, with the exception of special methods (__str__(), __add__(), etc.), descriptors (methods are also descriptors), and variable names listed in _ignore_.

Looking at the code _member_names has the list of member names internally that stores the members. I guess with a callable assigned to TEST it becomes a method and is not added as a member as per the above doc to skip descriptor as method.
History
Date User Action Args
2019-10-05 13:36:58xtreaksetrecipients: + xtreak, ethan.furman, typish
2019-10-05 13:36:58xtreaksetmessageid: <1570282618.83.0.839171762738.issue38375@roundup.psfhosted.org>
2019-10-05 13:36:58xtreaklinkissue38375 messages
2019-10-05 13:36:58xtreakcreate