This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | vstinner |
|---|---|
| Recipients | John Hagen, abarry, barry, eli.bendersky, ethan.furman, python-dev, rhettinger, vstinner |
| Date | 2016年08月17日.14:24:12 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <CAMpsgwZO-ifrCotKEWTpb7cNduD3obTVMyMwrZ2+QPGrwzVWbg@mail.gmail.com> |
| In-reply-to | <1471441028.53.0.145969894603.issue26988@psf.upfronthosting.co.za> |
| Content | |
|---|---|
> It's not just C that has enums where you can define a unique group of names and omit the values ...
Yes, Python 3.4 too: Animal = Enum('Animal', 'ant bee cat dog')
https://docs.python.org/dev/library/enum.html#functional-api |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2016年08月17日 14:24:12 | vstinner | set | recipients: + vstinner, barry, rhettinger, eli.bendersky, ethan.furman, python-dev, abarry, John Hagen |
| 2016年08月17日 14:24:12 | vstinner | link | issue26988 messages |
| 2016年08月17日 14:24:12 | vstinner | create | |