Relative Content

Tag Archive for pythonenums

Parameterized Enums in Python

In Python, I want to have an enum-like data structure that can be used like the Option enum in Rust: the enum has parameterized member, and an unparameterized, e.g.,