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

[Python-Dev] PEP 435 - requesting pronouncement

[Python-Dev] PEP 435 - requesting pronouncement [Python-Dev] PEP 435 - requesting pronouncementEthan Furman ethan at stoneleaf.us
Sun May 5 15:44:03 CEST 2013
On 05/05/2013 03:05 AM, Antoine Pitrou wrote:
> On Sat, 4 May 2013 15:04:49 -0700
> Eli Bendersky <eliben at gmail.com> wrote:
>> Hello pydev,
>>
>> PEP 435 is ready for final review. A lot of the feedback from the last few
>> weeks of discussions has been incorporated.
>
> I still would like to see Nick's class-based API preferred over the
> functional API:
>
>     class Season(Enum, members='spring summer autumn'):
>        pass
>
> The PEP doesn't even mention it, even though you got significant
> pushback on the proposed _getframe() hack for pickling (including
> mentions that IronPython and Cython may not support it), and nobody
> seemed to be unhappy with the class-based proposal.

Agreed that the PEP should mention it.

-1 on using it.

We don't need two different ways to use class syntax.

The functional interface is there for two reasons:

   - to easily create enums dynamically (fairly rare, I'm sure)

   - to easily create enums when prototyping or at the interactive prompt (I'll use it all the time -- it's convenient! ;)

--
~Ethan~
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