diff options
author | Marc-André Lemburg <mal@egenix.com> | 2000-09-07 11:00:03 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2000-09-07 11:00:03 (GMT) |
commit | f156a44e8c5d0184c5868b7d6225d7a497e9ca56 (patch) | |
tree | 5ec1576d2fa916551a630fc3de3d04b25637d16e /Lib/copy.py | |
parent | 627273165dc74a25eadfa25722113f7e31e75123 (diff) | |
download | cpython-f156a44e8c5d0184c5868b7d6225d7a497e9ca56.zip cpython-f156a44e8c5d0184c5868b7d6225d7a497e9ca56.tar.gz cpython-f156a44e8c5d0184c5868b7d6225d7a497e9ca56.tar.bz2 |
Added Unicode objects to the copy mechanism. Since these are immutable,
they are copied as atomic types.
Diffstat (limited to 'Lib/copy.py')
-rw-r--r-- | Lib/copy.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/copy.py b/Lib/copy.py index 100ea13..9576575 100644 --- a/Lib/copy.py +++ b/Lib/copy.py @@ -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 |