[Python-Dev] PEP 435: pickling enums created with the functional API (original) (raw)

Ethan Furman ethan at stoneleaf.us
Tue May 7 16:53:25 CEST 2013


On 05/07/2013 07:48 AM, Piotr Duda wrote:

What about adding simple syntax (I proposed this earlier, but no one commented) that take care of assigning name and module, something like: def name = expression which would be rough equivalent for: name = expression name.name = 'name' name.module = name

How is that different from

--> name = Enum('module.name', ... )

?

-- Ethan



More information about the Python-Dev mailing list