From: Guido van Rossum Date: Fri, 13 Mar 1998 20:12:17 +0000 (+0000) Subject: As Mike Fletcher pointed out, a __deepcopy__() method should be called X-Git-Tag: v1.5.1~377 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=677fc843ea458642dfea59d7fc8644356d096c00;p=python As Mike Fletcher pointed out, a __deepcopy__() method should be called with the memo as an argument. --- 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)