Re: Basic inheritance question



On Jan 5, 10:31 am, MartinRineh...@xxxxxxxxx wrote:
...
class code:
    def __init__( self, start, stop ):
        startLoc = start
        stopLoc = stop
...

You've forgotten the explicit self.
def __init__( self, start, stop ):
self.startLoc = start
self.stopLoc = stop

--
Paul Hankin
.