Message190803
So, which is better?
To have a @unique class decorator as part of the module, or to have a UniqueEnum recipe in the docs?
A decorator is immediately usable, but requires remembering an extra line of code.
An example requires being put into a local utility module, but also serves as a guide to customising Enums. (Took be about five tries to get it right. :/ ) |
|
Date |
User |
Action |
Args |
2013-06-08 15:55:42 | ethan.furman | set | recipients:
+ ethan.furman, gvanrossum, barry, ncoghlan, benjamin.peterson, ezio.melotti, alex, eli.bendersky, docs@python, python-dev, zach.ware, pconnell, dstufft, isoschiz |
2013-06-08 15:55:42 | ethan.furman | set | messageid: <1370706942.8.0.57690941379.issue17947@psf.upfronthosting.co.za> |
2013-06-08 15:55:42 | ethan.furman | link | issue17947 messages |
2013-06-08 15:55:42 | ethan.furman | create | |
|