What's the best way to implement an 'enum' in Python?

Posted by sectrean on Stack Overflow See other posts from Stack Overflow or by sectrean
Published on 2008-08-31T15:55:47Z Indexed on 2010/03/16 22:41 UTC
Read the original article Hit count: 115

Filed under:
|

I'm mainly a C# developer, but I'm currently working on a project in Python.

What's the best way to implement the equivalent of an enum in Python?

© Stack Overflow or respective owner

Related posts about python

Related posts about enums