modifying inherited methods

Robin Becker robin at
Fri May 19 06:14:51 EDT 2000

In article <39250B93.4710EB86 at>, Thomas Thiele
<thiele at> 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