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 cool-RR
Recipients barry, cool-RR, eli.bendersky, ethan.furman
Date 2014-09-27.16:15:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411834544.21.0.577244285448.issue22505@psf.upfronthosting.co.za>
In-reply-to
Content
> https://docs.python.org/3/library/enum.html#orderedenum

As I said in the other ticket: I can easily use a subclass, but I think it's general enough functionality for it to be included in the standard library.

I could continue the discussion about databases, but it feels like a waste of time to me. The main principle is: If something has an important property (in this case an enum object's numerical value), it should be publicly exposed. Period. No need to spend hours discussing if and how that property will be used. They always end up getting used somehow-- The only question is whether the people using them need to obtain them through private variables for years until the developers finally understand that the property needs to be exposed publicly. If you want to go through that, be my guest.
History
Date User Action Args
2014-09-27 16:15:44cool-RRsetrecipients: + cool-RR, barry, eli.bendersky, ethan.furman
2014-09-27 16:15:44cool-RRsetmessageid: <1411834544.21.0.577244285448.issue22505@psf.upfronthosting.co.za>
2014-09-27 16:15:44cool-RRlinkissue22505 messages
2014-09-27 16:15:43cool-RRcreate