News for hackers. Stuff that matters.
Re:PEP 435 Accepted – Adding an Enum type to the Python stan... by Tobu on Friday May 10, 2013 @11:56AM (#5686893)
Since Enums are mostly unmagical (apart from the member wrapping), you can use a compact syntax:

  class Colors(Enum):
      red, green, blue = range(3)
Re:PEP 435 Accepted – Adding an Enum type to the Python stan... by iso8859-1 on Friday May 10, 2013 @07:00PM (#5689090)
will

    red, green, blue = itertools.count()
work too?
Re:PEP 435 Accepted – Adding an Enum type to the Python stan... by Tobu on Friday May 10, 2013 @07:02PM (#5689099)
If it works in a Python shell, it will work for an enum (this doesn't).