Bruno Desthuilliers a écrit : (snip)
> class Foo(object):
> bar = {'baz':'bing'}
> def __init__(self):
> self.bar = self.bar
Hem... Should re-read before posting :(
It's of course:
def __init__(self):
self.bar = self.bar.copy()
--
http://mail.python.org/mailman/listinfo/python-list
