Message189138
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 |
|
Date |
User |
Action |
Args |
2013-05-13 14:26:48 | barry | set | recipients:
+ barry, gvanrossum, ncoghlan, pitrou, eric.smith, alex, ethan.furman, dilettant |
2013-05-13 14:26:48 | barry | link | issue17959 messages |
2013-05-13 14:26:48 | barry | create | |
|