I have been doing the following to keep my class declarations short: class MyClass(MyOtherClass): def __init__(self,*args,**kwargs): self.MyAttr = kwargs.get('Attribute',None) #To get a default MyOtherClass.__init__(self,*args,**kwargs)
Is there a recommended way to get keyword arguments (or default) when using ** notation? -- Cheerios, Jeff Jeffries III CFO: www.touchmycake.com <http://www.willyoubemyfriend.com>
-- http://mail.python.org/mailman/listinfo/python-list