Message274704
Catching the erroneous registration rather than silently ignoring it sounds like the right thing to do here to me as well.
I'm actually surprised that code isn't already throwing an exception later on, as "isinstance" itself does fail with non-types:
>>> from enum import Enum
>>>
>>> IS = Enum("IS", "a, b")
>>> isinstance(IS.a, IS)
True
>>> isinstance(IS.a, IS.a)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: isinstance() arg 2 must be a type or tuple of types |
|
Date |
User |
Action |
Args |
2016-09-07 02:22:04 | ncoghlan | set | recipients:
+ ncoghlan, rhettinger, ethan.furman, lukasz.langa, eryksun, amogorkon |
2016-09-07 02:22:04 | ncoghlan | set | messageid: <1473214924.71.0.132458679157.issue27984@psf.upfronthosting.co.za> |
2016-09-07 02:22:04 | ncoghlan | link | issue27984 messages |
2016-09-07 02:22:04 | ncoghlan | create | |
|