Calling baseclass method from a derivated class

Emile van Sebille emile at fenx.com
Tue Feb 26 08:58:37 EST 2002


"Yannick Patois" 
> class toto2(toto1):
>    def titi(self):
>         print "titi2"

Do you mean like this?

class toto2(toto1):
    def titi(self):
        toto1.titi(self)
        print "titi2"


-- 

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list