diff options
author | Guido van Rossum <guido@python.org> | 1998-03-13 20:12:17 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-03-13 20:12:17 +0000 |
commit | 677fc843ea458642dfea59d7fc8644356d096c00 (patch) | |
tree | 4ce0bdc2da57ffbe9c9c45c6862fde22125a55b8 /Lib/copy.py | |
parent | 8046befce74a2a4e0fe965379e5c9f4c1627aab4 (diff) | |
download | cpython-git-677fc843ea458642dfea59d7fc8644356d096c00.tar.gz |
As Mike Fletcher pointed out, a __deepcopy__() method should be called
with the memo as an argument.
Diffstat (limited to 'Lib/copy.py')
-rw-r--r-- | Lib/copy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/copy.py b/Lib/copy.py index 1fbd48178a..1bdd4e15d6 100644 --- a/Lib/copy.py +++ b/Lib/copy.py @@ -215,7 +215,7 @@ def _keep_alive(x, memo): def _deepcopy_inst(x, memo): if hasattr(x, '__deepcopy__'): - return x.__deepcopy__() + return x.__deepcopy__(memo) if hasattr(x, '__getinitargs__'): args = x.__getinitargs__() _keep_alive(args, memo) |