mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Somehow, copy() of a classic class object was handled
atomically, but deepcopy() didn't support this at all. I don't see any reason for this, so I'm adding ClassType to the set of types that are deep-copied atomically.
This commit is contained in:
parent
c06e3acc73
commit
1dca482dbd
2 changed files with 2 additions and 1 deletions
|
@ -220,6 +220,7 @@ except AttributeError:
|
|||
pass
|
||||
d[types.TypeType] = _deepcopy_atomic
|
||||
d[types.XRangeType] = _deepcopy_atomic
|
||||
d[types.ClassType] = _deepcopy_atomic
|
||||
|
||||
def _deepcopy_list(x, memo):
|
||||
y = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue