Issue #26202: copy.deepcopy() now correctly copies range() objects with

non-atomic attributes.
This commit is contained in:
Serhiy Storchaka 2016-01-28 21:43:35 +02:00
parent d5db57396b
commit 0a20bbf669
3 changed files with 15 additions and 2 deletions

View file

@ -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