Message189013
| Author |
ncoghlan |
| Recipients |
ncoghlan |
| Date |
2013年05月12日.10:57:01 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1368356222.14.0.0972295622627.issue17961@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I encountered an interesting suggestion [1] regarding the enum.Enum convenience API: use the member names as their values, rather than the current integers starting from one.
Since we're now using definition order rather than value order for iteration, this suggestion makes a lot of sense to me.
(again, posting this as something to consider after the accepted PEP is incorporated)
[1] http://www.acooke.org/cute/Pythonssad0.html |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年05月12日 10:57:02 | ncoghlan | set | recipients:
+ ncoghlan |
| 2013年05月12日 10:57:02 | ncoghlan | set | messageid: <1368356222.14.0.0972295622627.issue17961@psf.upfronthosting.co.za> |
| 2013年05月12日 10:57:02 | ncoghlan | link | issue17961 messages |
| 2013年05月12日 10:57:01 | ncoghlan | create |
|