Message189138
| Author |
barry |
| Recipients |
alex, barry, dilettant, eric.smith, ethan.furman, gvanrossum, ncoghlan, pitrou |
| Date |
2013年05月13日.14:26:48 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<20130513102647.298d1124@limelight.wooz.org> |
| In-reply-to |
<1368341497.6.0.896861896968.issue17959@psf.upfronthosting.co.za> |
| Content |
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 |
|