Syntactic pain.. :P

Greg Ewing greg.ewing at compaq.com
Mon Sep 6 17:37:56 EDT 1999


"Magnus L. Hetland" wrote:
> 
> I'm probably missing your point here, but... What about:
> 
>   class Bar(Foo):
>       def __init__(self, a1, a2, a3="x", a4="y"):
>           Foo.__init__(self, a1, a2, a4, a4)
>       # ...

That's not an option if the constructor has a variable
argument list. This situation comes up every time you
want to subclass a Tkinter widget...

Greg




More information about the Python-list mailing list