diff options
author | Guido van Rossum <guido@python.org> | 2003-02-07 17:53:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-02-07 17:53:23 (GMT) |
commit | 1dca482dbdd42fc9a81cab1ae2f04471511c338d (patch) | |
tree | e2e900469c60acd0816a18967ce38970624c4384 /Lib/copy.py | |
parent | c06e3acc735a6e9cf28d0f511493bcfd8829117d (diff) | |
download | cpython-1dca482dbdd42fc9a81cab1ae2f04471511c338d.zip cpython-1dca482dbdd42fc9a81cab1ae2f04471511c338d.tar.gz cpython-1dca482dbdd42fc9a81cab1ae2f04471511c338d.tar.bz2 |
Somehow, copy() of a classic class object was handled
atomically, but deepcopy() didn't support this at all.
I don't see any reason for this, so I'm adding ClassType
to the set of types that are deep-copied atomically.
Diffstat (limited to 'Lib/copy.py')
-rw-r--r-- | Lib/copy.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/copy.py b/Lib/copy.py index c1c0ec0..b57fa89 100644 --- a/Lib/copy.py +++ b/Lib/copy.py @@ -220,6 +220,7 @@ except AttributeError: pass d[types.TypeType] = _deepcopy_atomic d[types.XRangeType] = _deepcopy_atomic +d[types.ClassType] = _deepcopy_atomic def _deepcopy_list(x, memo): y = [] |