What exactly is the 'object' class in Python?

Viewed 65

I understand that str, int, float, list, tuple are classes, and that they are instance of the default metaclass - type. But what exactly is the 'object' class? At first I thought it was a class like str and int, only that it automatically bequeaths to all classes. But then I saw that the metaclass type both inherited from him and bequeathed to him:

print (isinstance (type, object))
print (isinstance (object, type))

output:

True
True

why is it? How its posible? What exactly is the 'object' class? And what is the difference between it and the metaclass type? If 'object' is a class so what is the metaclass of him?

0 Answers
Related