summaryrefslogtreecommitdiffstats
path: root/Lib/copy.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/copy.py')
-rw-r--r--Lib/copy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/copy.py b/Lib/copy.py
index a4a3ceb..02aa46b 100644
--- a/Lib/copy.py
+++ b/Lib/copy.py
@@ -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: