News for hackers. Stuff that matters.
Re:PEP 435 Accepted – Adding an Enum type to the Python stan... by ulope on Friday May 10, 2013 @10:29AM (#5686362)
The second parameter can also be a list/tuple of strings. e.g.:

>>> Animal = Enum('Animal', ('lion', 'tiger', 'liger', 'tigon'))

There are no comments on this comment yet.