On Apr 22, 2013, at 12:06 AM, Steven D'Aprano wrote:

>On 21/04/13 15:33, Nick Coghlan wrote:
>
>> The PEP is fine, as it already allows duplicate names without encouraging
>> them:
>>
>>      class Insect(Enum):
>>          wasp = 1  # Preferred. Use this in new code.
>>          bee = 2
>>          ant = 3
>>      # Backwards compatibility aliases
>>      Insect.wsap = Insect.wasp
>
>Hmmm, I must have missed this.
>
>That satisfies my use-cases. Objection withdrawn.

Yay!

-Barry
_______________________________________________
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