Question

At one point enums were considered by the Python developers to add to the language, but they dropped the feature. Is there some implementation of the PEP 354? — the specification seems pretty robust.

Was it helpful?

Solution

http://pypi.python.org/pypi/enum/ is the implementation of this PEP.

OTHER TIPS

The PyPI package enum provides a Python implementation of the data types described in this PEP.

Also, an implementation by Barry Warsaw.

Finally, PEP 435 has been accepted for Python 3.4, the backport is enum34, and the advanced version is aenum.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top