[issue26988] Add AutoNumberedEnum to stdlib

Ethan Furman report at bugs.python.org
Sat Jul 9 13:11:57 EDT 2016


Ethan Furman added the comment:

The problem with testing the type of object a name refers to outside the class is it then becomes more difficult to make that an Enum member:

class AddressType(Enum):
    pobox
    mailbox  # third-party po box
    property

Having to assign a value to `property` pretty much negates the value of the magic.

I'll go with `_ignore_`.

----------

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


More information about the Python-bugs-list mailing list