Skip to content

Instantly share code, notes, and snippets.



Created Oct 10, 2013
What would you like to do?
Code snippet for using enum in Python 2.
def enum(**enums):
return type('Enum', (), enums)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment