Whats the problem??
Seems to work (python 2.7.8)

[Ive added a line so that that you can see]

class C:
   def __init__(self):
       pass

class C2(C):
    def __init__(self, *args, **kwargs):
        self.dic = kwargs
        pass
x = C2(kwarg='a')
y = C2(kwarg='a', kwarg2=8)


========================
>>> x.dic
{'kwarg': 'a'}
>>> y.dic
{'kwarg': 'a', 'kwarg2': 8}
>>> 
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to