Are there any circumstances where a default keyword argument might get set implicitly?
For example, suppose we have a class:
class A(object):
def __init__(self,keys=[],children=[]):
print "A(keys=%s,children=%s)"%(keys,children)
self.keys=keys
self.children=children
Is it ever possible for there to be a different between:
A(keys=[],children=[v])
and
A(children=[v])
?
I have a program where when leaving keys implicit, they are getting set to a value other than the default empty list.