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 ncoghlan
Recipients amogorkon, eryksun, ethan.furman, lukasz.langa, ncoghlan, rhettinger
Date 2016-09-07.02:22:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473214924.71.0.132458679157.issue27984@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-09-07 02:22:04ncoghlansetrecipients: + ncoghlan, rhettinger, ethan.furman, lukasz.langa, eryksun, amogorkon
2016-09-07 02:22:04ncoghlansetmessageid: <1473214924.71.0.132458679157.issue27984@psf.upfronthosting.co.za>
2016-09-07 02:22:04ncoghlanlinkissue27984 messages
2016-09-07 02:22:04ncoghlancreate