How to use strings as name aliases in Python enums

Date Tags Python

Python has support for enumerations built into the standard library since version 3.4. The Enum type is quite powerful but serializing enum members to human readable representations and deserializing them to an enum meber can be cumbersome.

If we want to have an enumeration of certain train stations between …

more ...