eli.bendersky <python-check...@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~
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
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