[issue19025] Deleting attribute of Enum gives misleading error message
Ethan Furman
report at bugs.python.org
Sun Sep 15 19:50:38 CEST 2013
Ethan Furman added the comment:
Perhaps a section in the docs about the differences from typical Python classes is warranted:
- Enum members are virtual
- Enum members are singletons
- new Enum members (aka instances of an Enum class) cannot be created
- during class creation Enum members cannot be overwritten, nor overwrite
other class attributes
- Enum classes with members cannot be subclassed
- Enum classes support iteration
- Enum classes support containment
----------
nosy: +eli.bendersky
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19025>
_______________________________________
More information about the Python-bugs-list
mailing list