Basic inheritance question
Bjoern Schliessmann
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Sat Jan 5 05:53:07 EST 2008
MartinRinehart at gmail.com wrote:
> Jeroen Ruigrok van der Werven wrote:
>> self.startLoc = start
>> self.stopLoc = stop
>
> Thanks! Of course it should. Old Java habits die slowly.
That's not really a Java habit. In Java and C++, personally I like
to write
this.startLoc = start
this.stopLoc = stop
It makes much clearer what a field and what a "normal" variable is
in those languages.
Regards,
Björn
--
BOFH excuse #294:
PCMCIA slave driver
More information about the Python-list
mailing list