indentation
Thomas Hamelryck
thamelry at vub.ac.be
Fri Dec 3 16:35:02 EST 1999
Gerrit Holl (gerrit.holl at pobox.com) wrote:
[snip]
: I don't know how it is on other languages, but the mistake I make most is:
: class A:
: def __init__():
: ...
: no self... Why do I have to type it, if it's not possible to not type it?
[snip]
Funny, that doesn't bother me one bit. I guess self is necessary for the
inheritance implementation, where you have to provide a self instance to
the base class methods. I think the use of self (or whatever you want to use)
clarifies the distinction between local variables and class attributes.
--
Cheers,
------------------------------------------------
Thomas Hamelryck//Free University Brussels (VUB)
Intitute for Molecular Biology// ULTR Department
Paardestraat 65//1640 Sint-Gensius-Rode//Belgium
------------------------------------------------
More information about the Python-list
mailing list