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

[Python-Dev] [Python-checkins] peps: Pre-alpha draft for PEP 435 (enum). The name is not important at the moment, as

[Python-Dev] [Python-checkins] peps: Pre-alpha draft for PEP 435 (enum). The name is not important at the moment, as [Python-Dev] [Python-checkins] peps: Pre-alpha draft for PEP 435 (enum). The name is not important at the moment, asEthan Furman ethan at stoneleaf.us
Sat Feb 23 17:41:18 CET 2013
> eli.bendersky <python-checkins at python.org> wrote:
>> +Ordered comparisons between enumeration values are *not* supported.  Enums are
>> +not integers!

class WeekDays(Enum):
     SUNDAY      = enum(doc='last day of the weekend')
     MONDAY      = enum(doc='back to work!')
     TUESDAY     = enum(doc='ho hum day')
     WEDNESDAY   = enum(doc='rounding the bend!')
     THURSDAY    = enum(doc='almost Friday!')
     FRIDAY      = enum(doc='last day!')
     SATURDAY    = enum(doc='sleeping in...')

So you're saying that MONDAY should not come before TUESDAY??

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