Popular recipes by Arthur Gardiner http://code.activestate.com/recipes/users/4185064/2013-01-29T16:13:39-08:00ActiveState Code RecipesC-style enumerations (Python)
2013-01-29T16:13:39-08:00Arthur Gardinerhttp://code.activestate.com/recipes/users/4185064/http://code.activestate.com/recipes/578438-c-style-enumerations/
<p style="color: grey">
Python
recipe 578438
by <a href="/recipes/users/4185064/">Arthur Gardiner</a>
(<a href="/recipes/tags/enum/">enum</a>, <a href="/recipes/tags/enumeration/">enumeration</a>).
</p>
<p>Fast and dirty C style enumerations specifically made for machine states but easily adapted. Not the most optimized implementation but a hardy read-only structure that I got tired of emailing around.</p>