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 <1464562361.71.0.727466697005.issue27158@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-05-29 22:52:41ppperrysetrecipients: + ppperry
2016-05-29 22:52:41ppperrysetmessageid: <1464562361.71.0.727466697005.issue27158@psf.upfronthosting.co.za>
2016-05-29 22:52:41ppperrylinkissue27158 messages
2016-05-29 22:52:41ppperrycreate