SF patch 707900, fixing bug 702858, by Steven Taschuk.

Copying a new-style class that had a reference to itself didn't work.
(The same thing worked fine for old-style classes.)
This commit is contained in:
Guido van Rossum 2003-06-13 19:28:47 +00:00
parent 097da0dc01
commit 99d2c251df
3 changed files with 54 additions and 2 deletions

View file

@ -334,6 +334,7 @@ def _reconstruct(x, info, deep, memo=None):
if deep:
args = deepcopy(args, memo)
y = callable(*args)
memo[id(x)] = y
if listiter is not None:
for item in listiter:
if deep: