Circular relationship: object - type

Mohan Parthasarathy suruti94 at gmail.com
Thu May 14 18:34:07 EDT 2009


Hi,

I have read several articles and emails:

http://www.cafepy.com/article/python_types_and_objects/python_types_and_objects.html#relationships-transitivity-figure
http://mail.python.org/pipermail/python-list/2007-February/600128.html

 I understand how type serves to be the default metaclass when an object is
created and it also can be changed. I also read a few examples on why this
metaclass can be a powerful concept. What I fail to understand is the
circular relationship between object and type. Why does type have to be
subclassed from object ? Just to make "Everything is an object and all
objects are  inherited from object class".

Why can't just type be the class from which object class is instantiated ?
Why does it have to be a subclass of object also ?

Sorry if this has been answered before.

Thanks in advance,
mohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090514/136f3c86/attachment.html>


More information about the Python-list mailing list