Using enumerated types in Python
This week's post is about using enumerated types (enums) in Python. You will learn:
- How to use enums to manage data that takes on a finite set of states.
- How to impose a custom ordering on data.
- How to represent a combination of states using
Source: Using enumerated types in Python, an article by John Lekberg.