[Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Apr 28 04:12:22 CEST 2013


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


More information about the Python-Dev mailing list