Tom Clarke added the comment:
NB - (discussion of significance of this bug)
Defaultdict called with no argument is anomalous & this problem can be
avoided in such cases by using dict. However this is not possible if
default value can change and the documentation specifically def
Changes by Tom Clarke :
Added file: http://bugs.python.org/file14641/bug.py
___
Python tracker
<http://bugs.python.org/issue6637>
___
___
Python-bugs-list mailin
New submission from Tom Clarke :
The enclosed script when run under 2.6.2 IDLE standard distribution on
x86 shows that shallow copy (.copy()) of a non-empty defaultdict object
returns an empty defaultdict!
Other ways to copy, e.g. defaultdict(none, d.items()), work fine.
Bug appears under