[Python-Dev] PyPy, Jython, & IronPython: Enum convenience function and pickleablity
Antoine Pitrou
solipsis at pitrou.net
Fri May 3 10:42:59 CEST 2013
More information about the Python-Dev mailing list
Fri May 3 10:42:59 CEST 2013
- Previous message: [Python-Dev] PyPy, Jython, & IronPython: Enum convenience function and pickleablity
- Next message: [Python-Dev] PyPy, Jython, & IronPython: Enum convenience function and pickleablity
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Le Fri, 3 May 2013 09:14:22 +1000, Nick Coghlan <ncoghlan at gmail.com> a écrit : > > > > The other issue is your proposal to have a class-based convenience > > syntax > akin to (correct me if I got this wrong): > > > > class Animal(Enum): > > __values__ = 'cat dog' > > I would suggest moving the field names into the class header for a > class based convenience API: > > class Animal(Enum, members='cat dog'): pass This looks good to me (assuming some people don't like the special attribute scheme). Regards Antoine.
- Previous message: [Python-Dev] PyPy, Jython, & IronPython: Enum convenience function and pickleablity
- Next message: [Python-Dev] PyPy, Jython, & IronPython: Enum convenience function and pickleablity
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list