Hacker News new | ask | show | jobs
by ulope 4786 days ago
The second parameter can also be a list/tuple of strings. e.g.:

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