[Tutor] (*args, **kwargs)
Matt Williams
matthew.williams at cancer.org.uk
Fri Aug 4 18:49:12 CEST 2006
Dear Etienne & Carlos,
Thanks so much for that - much clearer!
I guess the next question is _how_ do you use it intelligently? I'm
interested because I'm trying to put stuff into a db using sqlobject.
Obviously one way would be:
class MyClass:
def __init__(self,**kw)
self.property1 = self.kw['property1']
self.property2 = self.kw['property2']
etc....
Does anyone know of an example of this ?
Thanks,
Matt
More information about the Tutor
mailing list