diff --git a/Lib/copy.py b/Lib/copy.py index 9bc794aefc0..e47f03e1ee4 100644 --- a/Lib/copy.py +++ b/Lib/copy.py @@ -99,7 +99,7 @@ def copy(x): def _copy_immutable(x): return x -for t in (type(None), int, int, float, bool, str, tuple, +for t in (type(None), int, float, bool, str, tuple, frozenset, type, xrange, types.ClassType, types.BuiltinFunctionType, types.FunctionType): @@ -178,7 +178,6 @@ def _deepcopy_atomic(x, memo): return x d[type(None)] = _deepcopy_atomic d[int] = _deepcopy_atomic -d[int] = _deepcopy_atomic d[float] = _deepcopy_atomic d[bool] = _deepcopy_atomic try: