mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Issue #26202: copy.deepcopy() now correctly copies range() objects with
non-atomic attributes.
This commit is contained in:
parent
d5db57396b
commit
0a20bbf669
3 changed files with 15 additions and 2 deletions
|
@ -207,7 +207,6 @@ try:
|
|||
except AttributeError:
|
||||
pass
|
||||
d[type] = _deepcopy_atomic
|
||||
d[range] = _deepcopy_atomic
|
||||
d[types.BuiltinFunctionType] = _deepcopy_atomic
|
||||
d[types.FunctionType] = _deepcopy_atomic
|
||||
d[weakref.ref] = _deepcopy_atomic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue