Enum type added to the standard python library.

heidi2521

Padawan
PEP 435 -- Adding an Enum type to the Python standard library

PEP: 435
Title: Adding an Enum type to the Python standard library
Version: bd3de993d6e2
Last-Modified: 2013-05-10 05:45:20 -0700 (Fri, 10 May 2013)
Author: Barry Warsaw <barry at python.org>, Eli Bendersky <eliben at gmail.com>, Ethan Furman <ethan at stoneleaf.us>
Status: Accepted
Type: Standards Track
Content-Type: text/x-rst
Created: 2013-02-23
Python-Version: 3.4
Post-History: 2013-02-23, 2013-05-02
Resolution: [Python-Dev] PEP 435 (Enums) is Accepted

The resolution:

Guido van Rossum said:
I have reviewed the latest version of PEP 435 and I see that it is
very good. I hereby declare PEP 435 as Accepted. Congratulations go to
Barry, Eli and Ethan for pulling it through one of the most thorough
reviewing and bikeshedding processes any PEP has seen. Thanks to
everyone else for the many review comments. It is a better PEP because
of the reviews.

The Python team really seems intent on making their language as good as possible. Props to them. Now only if they would make PyPy standard (and the Django team would try and keep up with Rails).
 

Santa Maria!

Journeyman
Yep, I'm glad for this. Have been using one of the many 'workarounds' to simulate an enum in code. Of course, I won't be able to use this at work since we still use 2.7, but maybe for some personal projects :)
 
Top Bottom