calling super()

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Thu Apr 5 01:32:31 CEST 2007


Jarek Zgoda a écrit :
> Finger.Octopus at gmail.com napisał(a):
> 
> 
(snip)

>>class NewPage(HTMLMain):
>>    def __init__(self):
>>        print 'derive2 init'
>>        super(NewPage, self).__init__();
> 
> 
> This should read: super(HTMLMain, self).__init__()

Nope. It's just how it should be.




More information about the Python-list mailing list