python2.7
>>> issubclass(type,type)
True
>>> issubclass(object,object)
True
>>> issubclass(object,type)
False
I know that object
is on the top of new-style class, so type
is inherit from object
. Since object
is subclass of itself. Now I can get a chain like this:
type
--> object
--> object
-X-> type
.
How could issubclass(type,type)
be True
?