Re: Basic inheritance question
- From: Paul Hankin <paul.hankin@xxxxxxxxx>
- Date: Sat, 5 Jan 2008 02:37:53 -0800 (PST)
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
.
- References:
- Basic inheritance question
- From: MartinRinehart
- Basic inheritance question
- Prev by Date: Re: Basic inheritance question
- Next by Date: Re: Basic inheritance question
- Previous by thread: Re: Basic inheritance question
- Next by thread: Re: Basic inheritance question
- Index(es):