diff options
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 02aa46b503..31adfd3317 100644 --- a/Lib/copy.py +++ b/Lib/copy.py @@ -120,6 +120,7 @@ except AttributeError: d[types.TypeType] = _copy_atomic d[types.XRangeType] = _copy_atomic d[types.ClassType] = _copy_atomic +d[types.BuiltinFunctionType] = _copy_atomic def _copy_list(x): return x[:] @@ -233,6 +234,7 @@ except AttributeError: d[types.TypeType] = _deepcopy_atomic d[types.XRangeType] = _deepcopy_atomic d[types.ClassType] = _deepcopy_atomic +d[types.BuiltinFunctionType] = _deepcopy_atomic def _deepcopy_list(x, memo): y = [] |