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 vajrasky
Recipients ethan.furman, vajrasky
Date 2013-09-12.02:25:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378952736.89.0.866362318866.issue18995@psf.upfronthosting.co.za>
In-reply-to
Content
Simplified unit test. I reused enum Season in the test class.

By the way, there is another way to add support for enum without implementing __reversed__ method, which is adding support indexing by number (in __getitem__ method), e.g. Season[1] => Season.SPRING. But I prefer using __reversed__ method.
History
Date User Action Args
2013-09-12 02:25:36vajraskysetrecipients: + vajrasky, ethan.furman
2013-09-12 02:25:36vajraskysetmessageid: <1378952736.89.0.866362318866.issue18995@psf.upfronthosting.co.za>
2013-09-12 02:25:36vajraskylinkissue18995 messages
2013-09-12 02:25:36vajraskycreate