[Tutor] SubClassing

Ismael Garrido ismaelgf at adinet.com.uy
Fri Feb 25 08:54:39 CET 2005


Sean Perry wrote:

> yep. call 'Parent.__init__(this, that)' then do 'self.new = new'
>
> def __init__(self, this, that, new):
>     Parent.__init__(this, that)
>     self.new = new

Thanks.

Though it should be:
def __init__(self, this, that, new):
    Parent.__init__(self, this, that)  #note self
    self.new = new

Thanks again!
Ismael


More information about the Tutor mailing list