[docs] [issue17947] Code, test, and doc review for PEP-0435 Enum
Ethan Furman
report at bugs.python.org
Sat Jun 8 17:55:42 CEST 2013
Ethan Furman added the comment:
So, which is better?
To have a @unique class decorator as part of the module, or to have a UniqueEnum recipe in the docs?
A decorator is immediately usable, but requires remembering an extra line of code.
An example requires being put into a local utility module, but also serves as a guide to customising Enums. (Took be about five tries to get it right. :/ )
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17947>
_______________________________________
More information about the docs
mailing list