[Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sun Apr 28 04:12:22 CEST 2013
- Previous message: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library
- Next message: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum wrote:
And init/new probably shouldn't be overridden.
Why shouldn't init be overridden? It's the obvious way to support Java-style enum-items-with-attributes.
-- Greg
- Previous message: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library
- Next message: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]