[Python-Dev] PEP 435 - requesting pronouncement
Steven D'Aprano
steve at pearwood.info
Sun May 5 12:59:03 CEST 2013
More information about the Python-Dev mailing list
Sun May 5 12:59:03 CEST 2013
- Previous message: [Python-Dev] PEP 435 - requesting pronouncement
- Next message: [Python-Dev] PEP 435 - requesting pronouncement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 05/05/13 20:05, Antoine Pitrou wrote: > I still would like to see Nick's class-based API preferred over the > functional API: > > class Season(Enum, members='spring summer autumn'): > pass -1 As already mentioned, this is no substitute for the functional API as it is a statement, not an expression. As for pickling, the usual restrictions on pickling apply. It's not like the functional API creates new and unexpected restrictions. -- Steven
- Previous message: [Python-Dev] PEP 435 - requesting pronouncement
- Next message: [Python-Dev] PEP 435 - requesting pronouncement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list