Passing variable-length keyworded arguments list to base class constructor?

Jerome Quelin jerome.quelin at insalien.org
Fri Jun 30 11:31:13 EDT 2000


gmcm at hypernet.com (Gordon McMillan) wrote:
>>But how to pass this dictionnary to the parent class constructor?
>class F(Frame):
>  def __init__(self, *args, **kwargs):
>    apply(Frame.__init__, (self,)+args, kwargs)
>Generally you have to muck with the kwargs dict before passing it to the 
>base class __init__.
That is exactly what I want to know: what this mucking consists of?

Jerome
--
jerome.quelin at insalien.org



More information about the Python-list mailing list