mirror of https://github.com/python/cpython
Added Unicode objects to the copy mechanism. Since these are immutable,
they are copied as atomic types.
This commit is contained in:
parent
627273165d
commit
f156a44e8c
|
@ -84,6 +84,7 @@ d[types.IntType] = _copy_atomic
|
|||
d[types.LongType] = _copy_atomic
|
||||
d[types.FloatType] = _copy_atomic
|
||||
d[types.StringType] = _copy_atomic
|
||||
d[types.UnicodeType] = _copy_atomic
|
||||
try:
|
||||
d[types.CodeType] = _copy_atomic
|
||||
except AttributeError:
|
||||
|
@ -160,6 +161,7 @@ d[types.IntType] = _deepcopy_atomic
|
|||
d[types.LongType] = _deepcopy_atomic
|
||||
d[types.FloatType] = _deepcopy_atomic
|
||||
d[types.StringType] = _deepcopy_atomic
|
||||
d[types.UnicodeType] = _deepcopy_atomic
|
||||
d[types.CodeType] = _deepcopy_atomic
|
||||
d[types.TypeType] = _deepcopy_atomic
|
||||
d[types.XRangeType] = _deepcopy_atomic
|
||||
|
|
Loading…
Reference in New Issue