mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Support copying booleans. Fixes #668925.
This commit is contained in:
parent
d800ae12f2
commit
71b755646a
1 changed files with 2 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ def _copy_atomic(x):
|
|||
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 @@ def _deepcopy_atomic(x, memo):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue