[issue6637] non-empty defaultdict .copy() fails returning empty dict

2009-08-04 Thread Tom Clarke
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

[issue6637] non-empty defaultdict .copy() fails returning empty dict

2009-08-03 Thread Tom Clarke
Changes by Tom Clarke : Added file: http://bugs.python.org/file14641/bug.py ___ Python tracker <http://bugs.python.org/issue6637> ___ ___ Python-bugs-list mailin

[issue6637] non-empty defaultdict .copy() fails returning empty dict

2009-08-03 Thread Tom Clarke
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