mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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:
parent
097da0dc01
commit
99d2c251df
3 changed files with 54 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue