Re: Basic inheritance question



Lie a écrit :
On Jan 5, 5:40 pm, MartinRineh...@xxxxxxxxx wrote:

Jeroen Ruigrok van der Werven wrote:


Shouldn't this be:

self.startLoc = start
self.stopLoc = stop

Thanks! Of course it should. Old Java habits die slowly.


No, seriously it isn't Java habits only, most other languages wouldn't
need explicit calling of class name.

Where is the "explicit calling of class name" exactly ?
.



Relevant Pages

  • Re: Basic inheritance question
    ... Old Java habits die slowly. ... No, seriously it isn't Java habits only, most other languages wouldn't ... need explicit calling of class name. ...
    (comp.lang.python)
  • Re: Basic inheritance question
    ... No, seriously it isn't Java habits only, most other languages wouldn't ... The difference is that Python uses functions to implement methods, so the only reliable way to "inject" the reference to the current instance is to pass it as an argument to the function. ... class variable table (so to refer to a class variable named var from a ...
    (comp.lang.python)
  • Re: Basic inheritance question
    ... Old Java habits die slowly. ... BOFH excuse #294: ... PCMCIA slave driver ...
    (comp.lang.python)