diff options
author | Guido van Rossum <guido@python.org> | 2003-02-07 17:53:23 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-02-07 17:53:23 +0000 |
commit | c135cc9e081dcbfc8a40c3067d69520feb5be13d (patch) | |
tree | 8b8a530ac5873f5d2a59c16386715dbf184a8889 /Lib/copy.py | |
parent | 5ea977e0b65f006fe80267c44a51f22827f0c0ca (diff) | |
download | cpython-c135cc9e081dcbfc8a40c3067d69520feb5be13d.tar.gz |
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 c1c0ec0cbd..b57fa89710 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 = [] |