Message265215
| Author |
ethan.furman |
| Recipients |
John Hagen, barry, eli.bendersky, ethan.furman |
| Date |
2016年05月10日.01:58:14 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1462845494.53.0.997778763537.issue26988@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
On the other hand, if you use aenum you can do:
class Color(AutoNumber):
red
green
blue
And isn't that better*? ;)
* For those in danger of swallowing their tongue over the magic involved: The magic is turned off as soon as any descriptor is defined (property, function, etc.). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年05月10日 01:58:14 | ethan.furman | set | recipients:
+ ethan.furman, barry, eli.bendersky, John Hagen |
| 2016年05月10日 01:58:14 | ethan.furman | set | messageid: <1462845494.53.0.997778763537.issue26988@psf.upfronthosting.co.za> |
| 2016年05月10日 01:58:14 | ethan.furman | link | issue26988 messages |
| 2016年05月10日 01:58:14 | ethan.furman | create |
|