Barry A. Warsaw added the comment:

On May 12, 2013, at 06:51 AM, Nick Coghlan wrote:

>>>> class Shape(Enum):
>...   square = 2
>...   diamond = 1
>...   circle = 3
>...   alias_for_square = square

I see Guido pronounced against it, but I'm just registering that I kind of
like this.  You could probably have guess that since flufl.enum doesn't allow
aliases at all mostly because of the potential for accidental duplicate
values, which this would avoid.

Hmm.  LP: #1179529

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17959>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to