Message197868
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." |
|
Date |
User |
Action |
Args |
2013-09-16 04:40:08 | vajrasky | set | recipients:
+ vajrasky, barry, r.david.murray, eli.bendersky, ethan.furman |
2013-09-16 04:40:08 | vajrasky | set | messageid: <1379306408.81.0.864905830383.issue19025@psf.upfronthosting.co.za> |
2013-09-16 04:40:08 | vajrasky | link | issue19025 messages |
2013-09-16 04:40:08 | vajrasky | create | |
|