harryos a écrit :
hi
i have seen some class definitions like

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

what does the object keyword

It's not a keyword.

inside the braces in MyClass() mean?

Answer is here:

http://docs.python.org/tut/node11.html#SECTION0011500000000000000000
http://docs.python.org/ref/class.html


Has it got any significance?

<ironic>
Nope, why ? It just look better that way...
</ironic>

Harry, this neswgroup is - as you may have noticed by now - very newbie friendly. But this is not a reason for not reading *at least* the FineManual's tutorial.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to