R
Ron Garret
Is this a bug or a feature?
class mydict(dict):
def __setitem__(self, key, val):
print 'foo'
dict.__setitem__(self, key, val)
rg
class mydict(dict):
def __setitem__(self, key, val):
print 'foo'
dict.__setitem__(self, key, val)
3d=mydict()
d[1]=2 foo
d.setdefault(2,3)
rg