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
More information about the Python-list mailing list
Fri Jun 30 11:31:13 EDT 2000
- Previous message (by thread): Passing variable-length keyworded arguments list to base class constructor?
- Next message (by thread): Passing variable-length keyworded arguments list to base class constructor?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Passing variable-length keyworded arguments list to base class constructor?
- Next message (by thread): Passing variable-length keyworded arguments list to base class constructor?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list