[Python-Dev] PyPy, Jython, & IronPython: Enum convenience function and pickleablity

Guido van Rossum guido at python.org
Fri May 3 01:18:42 CEST 2013


On Thu, May 2, 2013 at 4:14 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> I would suggest moving the field names into the class header for a class
> based convenience API:
>
> class Animal(Enum, members='cat dog'): pass

Would you propose the same for namedtuple?

-- 
--Guido van Rossum (python.org/~guido)


More information about the Python-Dev mailing list