summaryrefslogtreecommitdiffstats
path: root/Lib/copy.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-01-16 10:40:00 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-01-16 10:40:00 (GMT)
commit71b755646afc045051dcbad93237200eb8e0e8ee (patch)
tree01b9383c0427d2333bb6dc1a8a7765ccbd2ba2ca /Lib/copy.py
parentd800ae12f2efa048ee4e9c2558e646c9f3304022 (diff)
downloadcpython-71b755646afc045051dcbad93237200eb8e0e8ee.zip
cpython-71b755646afc045051dcbad93237200eb8e0e8ee.tar.gz
cpython-71b755646afc045051dcbad93237200eb8e0e8ee.tar.bz2
Support copying booleans. Fixes #668925.
Diffstat (limited to 'Lib/copy.py')
-rw-r--r--Lib/copy.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/copy.py b/Lib/copy.py
index e2474fe..59886cb 100644
--- a/Lib/copy.py
+++ b/Lib/copy.py
@@ -96,6 +96,7 @@ d[types.NoneType] = _copy_atomic
d[types.IntType] = _copy_atomic
d[types.LongType] = _copy_atomic
d[types.FloatType] = _copy_atomic
+d[types.BooleanType] = _copy_atomic
try:
d[types.ComplexType] = _copy_atomic
except AttributeError:
@@ -196,6 +197,7 @@ d[types.NoneType] = _deepcopy_atomic
d[types.IntType] = _deepcopy_atomic
d[types.LongType] = _deepcopy_atomic
d[types.FloatType] = _deepcopy_atomic
+d[types.BooleanType] = _deepcopy_atomic
try:
d[types.ComplexType] = _deepcopy_atomic
except AttributeError: