modifying inherited methods

Robin Becker robin at jessikat.demon.co.uk
Fri May 19 12:14:51 CEST 2000


In article <39250B93.4710EB86 at muc.das-werk.de>, Thomas Thiele
<thiele at muc.das-werk.de> writes
>Oh, sorry I misunderstand you.
>
>But the other thing is easy as well.
>
>class A:
>    def __init__(self, a,b,c,d):
>        .....
>
>class B(A):
>    def __init__(self, a,b):
>        c = <defaultc>
>        d= <defaultd>
>        A.__init__(self, a,b,c,d)
>
>
>
yes the only problem is when A.__init__ has a lot of arguments
and you don't want to cut and paste these to a bunch of inheriting
class methods.
-- 
Robin Becker



More information about the Python-list mailing list