object and type in Python: The circular class hierarchy

object and type in Python: The circular class hierarchy

Every Python class inherits (directly or not) from object.

object is a class. So type(object) is type, the class of all classes.

But type is a class, and inherits from object!

So yes: object is an instance of type. And type inherits from object.

Also: type(type) is type!