Much of our internal Python code uses a custom Enum class as an optimization above the built-in Enum type. These should be treated the same as built-in enums in terms of the custom enum handling in ...
The enum module was added since 3.4. That's good enough for simple use. The extenum is strongly inspired by Java Enum style described in Effective Java and provides additional feature.
Python, for all its power and popularity, has long lacked a form of flow control found in other languages—a way to take a value and match it elegantly against one of a number of possible conditions.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results