[Python-Dev] PEP 435: initial values must be specified? Yes (original) (raw)

Barry Warsaw barry at python.org
Mon May 6 01:16:10 CEST 2013


On May 05, 2013, at 03:43 PM, Guido van Rossum wrote:

I'll let Eli or Ethan respond to this. It sounds fine to me to support you with some kind of hook in the spec, even though I personally would rather assign my enum values explicitly (I'm old-fashioned that way :-).

Assuming the picklability of functional API created Enums is fixed (sorry, another threadsplosion still awaits me), if you really have to have autonumbering, use the functional API. IMHO, the class API doesn't need them.

-Barry



More information about the Python-Dev mailing list