On 4/12/2013 3:59 PM, Guido van Rossum wrote:
> class Insect(Enum):
> wasp = 1
> bee = 1
> ant = 2
>> We'd have Insect.wasp == Insect.bee < Insect.ant but Insect.wasp is
> not Insect.bee.
can't define two names in the same enum to have the same value, per the PEP.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130412/2865aadc/attachment.html>