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:50AM (#5686852)
The syntax is easy for us who have been using ghetto enums:

  class Colors:
      red, green, blue = range(3)

There are no comments on this comment yet.