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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17947>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to