Added Unicode objects to the copy mechanism. Since these are immutable,

they are copied as atomic types.
This commit is contained in:
Marc-André Lemburg 2000-09-07 11:00:03 +00:00
parent 627273165d
commit f156a44e8c
1 changed files with 2 additions and 0 deletions

View File

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