enum – Enumeration Type — PyMOTW 3
Originally posted
· 1 min read
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.