object object

Fredrik Lundh fredrik at pythonware.com
Thu Jun 20 05:38:28 EDT 2002


Eric Texier wrote:

> I didn' t find a lot about class object.
> and I would  like to know what I can
> inherit from it and what is the difference
> between, class foo(object): and class foo:

the former creates a "new-style class" or subtype,
the latter a "classic class":

to learn more, start here:

    http://www.amk.ca/python/2.2/index.html#SECTION000310000000000000000
    http://www.python.org/2.2.1/descrintro.html

</F>





More information about the Python-list mailing list