Enums were added to Python in version 3.4 by PEP 435.
Dynamic code execution with `exec` and `eval`
Creating an enum (Python 2.4 through 3.3)
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0