enum – Enumeration Type — PyMOTW 3
The enum module defines an enumeration type with iteration and comparison capabilities. It can be used to create well-defined symbols for values, instead of using literal integer or strings.
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.