A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-May/126083.html below:

pickling enums created with the functional API

[Python-Dev] PEP 435: pickling enums created with the functional API [Python-Dev] PEP 435: pickling enums created with the functional APIAntoine Pitrou solipsis at pitrou.net
Tue May 7 17:24:02 CEST 2013
Le Wed, 8 May 2013 01:03:38 +1000,
Nick Coghlan <ncoghlan at gmail.com> a écrit :
> 
> What if there was a variant of the class statement that bound the
> result of a function call rather than using the normal syntax:
> 
>     class Animal from enum.Enum(members="dog cat bear")

Apparently you're trying hard to invent syntaxes just to avoid
subclassing.

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4