I think following code should print a\n('b')\n{'a':1}
. But, actually it print "a\n('b', {'a': 1})\n{}" Why? I checked these discussions and seems my code does not have problems.
class Parent(object):
def f(self, a, *args, **kwargs):
print a
print args
print kwargs
class Child(Parent):
def f(self, a, *args, **kwargs):
super(Child, self).f(a, *args, **kwargs)
c = Child()
c.f("a", "b", {"a":1})