[Python-Dev] PEP 435: pickling enums created with the functional API (original) (raw)
Piotr Duda duda.piotr at gmail.com
Tue May 7 17:01:44 CEST 2013
- Previous message: [Python-Dev] PEP 435: pickling enums created with the functional API
- Next message: [Python-Dev] PEP 435: pickling enums created with the functional API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2013/5/7 Ethan Furman <ethan at stoneleaf.us>:
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', ... ) ?
It's DRY.
-- 闇に隠れた黒い力 弱い心を操る
- Previous message: [Python-Dev] PEP 435: pickling enums created with the functional API
- Next message: [Python-Dev] PEP 435: pickling enums created with the functional API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]