Ethan Furman added the comment:

This is certainly an effective method, but it places safety off by default.  I 
would rather have a system that was from duplicates by default but had an easy 
override.

The method I had in place in my original code was something like:

class Color(Enum, options=DUPLICATES):
    red = 1
    green = 2
    blue = 3
    grene = 2

Without the DUPLICATES option, the above class would raise an error.  Safe(r) 
by default, easy override.

If my suggestion doesn't fly, we should definitely put Nick's in.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18042>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to