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/125998.html below:

[Python-Dev] PEP 435 - requesting pronouncement

[Python-Dev] PEP 435 - requesting pronouncement [Python-Dev] PEP 435 - requesting pronouncementSteven D'Aprano steve at pearwood.info
Sun May 5 12:59:03 CEST 2013
On 05/05/13 20:05, Antoine Pitrou wrote:

> I still would like to see Nick's class-based API preferred over the
> functional API:
>
>     class Season(Enum, members='spring summer autumn'):
>        pass

-1

As already mentioned, this is no substitute for the functional API as it is a statement, not an expression.

As for pickling, the usual restrictions on pickling apply. It's not like the functional API creates new and unexpected restrictions.



-- 
Steven
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