class(object) and (type)??

AON LAZIO aonlazio at gmail.com
Mon Sep 8 17:35:19 EDT 2008


Hi again pythoners,
     I notice in the class of a code having (object) and (type) attached to
the name of the class.
I know that in other cases, that means the class inherits methods and
properties from other but
In this case, what does it mean?
For example,

class PY(object):
    def __init__(self):
        ...

class PO(type):
     def __init__(self):
         ...
     What do "object" and "type" mean?

Thanks in advance

Aonlazio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080908/faaf3b74/attachment.html>


More information about the Python-list mailing list