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

2013年2月23日 08:48:39 -0800

eli.bendersky <[email protected]> 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~
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to