**kwargs

sp00fD sp00fD at yahoo.com
Tue Jan 18 15:38:36 EST 2000


Does **kwargs represent a dictionary?  If so, can I have a method like
such

def foo(self, foo=None, bar=None, **kwargs)

and then do something like

this_dict = {}
..insert stuff into this_dict..

my.foo(foo="something", bar="something else", this_dict)

? How would I do something like this ?


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list