[Python-Dev] Re: Aside: apply syntax

David Ascher da at ski.org
Fri Jun 11 07:36:30 CEST 1999


On Thu, 10 Jun 1999, David Ascher wrote:


> class SubFoo(Foo):
>   def __init__(self, *args, **kw):
>     apply(Foo, (self, ) + args, kw)
>     ...
> 
> could be written
> 
> class SubFoo(Foo):
>   def __init__(self, *args, **kw):
>     Foo(self, *args, **kw)

Of course I meant Foo.__init__ in both of the above!

--david





More information about the Python-Dev mailing list