class definition syntax
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Fri Aug 29 07:24:07 EDT 2008
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.
More information about the Python-list
mailing list