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 barry, eli.bendersky, ethan.furman, r.david.murray, vajrasky
Date 2013-09-16.04:40:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379306408.81.0.864905830383.issue19025@psf.upfronthosting.co.za>
In-reply-to
Content
Here is the patch containing unit test only to confirm existing behaviour. So people can learn what to expect when they delete Enum attributes.

Even if we *decide* to change the behaviour of "del MyPet.CUTE_CAT" (assuming CUTE_CAT is an Enum member), I sense that we would only change the exception message not the exception type. That is, it still throws AttributeError but with better error message, such as "Cannot delete attribute."
History
Date User Action Args
2013-09-16 04:40:08vajraskysetrecipients: + vajrasky, barry, r.david.murray, eli.bendersky, ethan.furman
2013-09-16 04:40:08vajraskysetmessageid: <1379306408.81.0.864905830383.issue19025@psf.upfronthosting.co.za>
2013-09-16 04:40:08vajraskylinkissue19025 messages
2013-09-16 04:40:08vajraskycreate