Parameter passing in python
Oleg Broytmann
phd at phd.fep.ru
Thu May 31 10:53:24 EDT 2001
On Thu, 31 May 2001, Laura Creighton wrote:
> class MyButtonBox(Pmw.ButtonBox)
> def __init__(self, parent, **kw):
> ...
> apply(Pmw.ButtonBox.__init__, (self, parent), kw)
>
> Why am I required to do apply to be able to pass the keyword list?
> Some model of Pmw.ButtonBox.__init__(self, args) would be
> more readable.
In Python 2.0 this works without "apply".
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list