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 lambacck
Recipients lambacck
Date 2013-09-13.16:55:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379091343.71.0.460469461761.issue19011@psf.upfronthosting.co.za>
In-reply-to
Content
The use case for this is that when you are in a template and you want to use the Enum instances in a conditional, then you need to pass the Enum class to the template or start using someenumvariable.__class__.someenumvalue. Instead it would be useful to be able to do someenumvariable.someenumvalue. Implimenting as __getattr__ on enum class allows real attributes to take precedence and also allows for overriding of behaviour in child classes.
History
Date User Action Args
2013-09-13 16:55:43lambaccksetrecipients: + lambacck
2013-09-13 16:55:43lambaccksetmessageid: <1379091343.71.0.460469461761.issue19011@psf.upfronthosting.co.za>
2013-09-13 16:55:43lambaccklinkissue19011 messages
2013-09-13 16:55:43lambacckcreate