Message266644
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:41 | ppperry | set | recipients:
+ ppperry |
2016-05-29 22:52:41 | ppperry | set | messageid: <1464562361.71.0.727466697005.issue27158@psf.upfronthosting.co.za> |
2016-05-29 22:52:41 | ppperry | link | issue27158 messages |
2016-05-29 22:52:41 | ppperry | create | |
|