flufl.enum disallows this:
class Color(Enum):
red = 1
blue = 2
green = 1 # oops!
Has it been decided that this is now allowed? If this is indeed the case, then Color(1) is a problem. The options are:
A. Return either Color.red or Color.green
B. Throwing an error
Do we have a decision on this? Personally I think the latter is better; the former is error prone and doesn't seem to be useful too often.
Eli [trying to tie loose ends for updating the PEP].
class Color(Enum):
red = 1
blue = 2
Color.green = Color.red