News for hackers. Stuff that matters.
Re:PEP 435 Accepted – Adding an Enum type to the Python stan... by BoppreH on Friday May 10, 2013 @02:08PM (#5687749)
The PEP mentions these explicit values allow the creation of aliases in a very natural way.

  class Keys(Enum):
      space = 1
      esc = 2
      enter = 3
      return = 3 # Alias to "enter".
Also, less magic.
Re:PEP 435 Accepted – Adding an Enum type to the Python stan... by IgorPartola on Friday May 10, 2013 @05:26PM (#5688782)
return = 3 shouldn't work.
Re:PEP 435 Accepted – Adding an Enum type to the Python stan... by mbreese on Friday May 10, 2013 @06:11PM (#5688962)
you know what they meant...