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

[Python-Dev] Enum Eccentricities

[Python-Dev] Enum Eccentricities [Python-Dev] Enum EccentricitiesGuido van Rossum guido at python.org
Mon Sep 23 06:25:23 CEST 2013
On Sunday, September 22, 2013, Zero Piraeus wrote:

> I may be misunderstanding the use case given in the issue, but it seems
> to me that having to use
>
>     Color.red.__class__.blue
>
> (what is being complained about in the issue), while not exactly pretty,
> makes a lot more semantic sense than
>
>     Color.red.blue
>
> ... which is just bizarre.


Right.


> Enum members aren't class attributes, even if the way they're defined
> makes them look as though they are. Allowing this is just asking for
> more confusion on the part of anyone using them IMHO.
>

Depends on how you define "class sttribute".

--Guido


-- 
--Guido van Rossum (on iPad)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130922/2f06f791/attachment.html>
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