Sep-29-2018, 03:20 AM
**kwds (usually **kwargs) takes the named parameters passed to the function and provides them to the function as a dictionary of the names as keys with the values passed to them. An attribute of a class instance is just key in the instance's __dict__, which is also a dictionary. That is, foo.bar is the same as foo.__dict__['bar']. So you use the update method to added the named parameters and their values to the attributes for the instance.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures