I'm currently learning python OOP model and have been told
type
itself derives fromobject
, andobject
derives fromtype
I understand that object
is the default superclass of every class in python 3.x, and type
class is used to created classes (i.e. class object). object
and type
together (somehow) forms the bases of python OOP, but I am still confused as ever about the statement above.
Could someone provide a detailed explanation on the relationship between object
and type
, and the roles they play in python OOP. Thanks