Kaydet (Commit) 677fc843 authored tarafından Guido van Rossum's avatar Guido van Rossum

As Mike Fletcher pointed out, a __deepcopy__() method should be called

with the memo as an argument.
üst 8046befc
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment