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 ppperry
Recipients ppperry
Date 2016-05-29.22:52:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
If one executes the following statements:

>>> class metatype(type):pass
>>> class x(type,metaclass=metatype):pass
>>> x.__class__ = x

, one gets a type that is it's own type: (`type(x) is x`). However, `isinstance(x,x)` unexpectedly returns False. How is my `x` type not an instance of itself.
Date User Action Args
2016-05-29 22:52:41ppperrysetrecipients: + ppperry
2016-05-29 22:52:41ppperrysetmessageid: <>
2016-05-29 22:52:41ppperrylinkissue27158 messages
2016-05-29 22:52:41ppperrycreate