Issue 2460: Make Ellipsis objects copyable.
diff --git a/Lib/copy.py b/Lib/copy.py
index 35c666f..3f2033f 100644
--- a/Lib/copy.py
+++ b/Lib/copy.py
@@ -101,7 +101,7 @@
return x
for t in (type(None), int, long, float, bool, str, tuple,
frozenset, type, xrange, types.ClassType,
- types.BuiltinFunctionType,
+ types.BuiltinFunctionType, type(Ellipsis),
types.FunctionType):
d[t] = _copy_immutable
for name in ("ComplexType", "UnicodeType", "CodeType"):
@@ -197,6 +197,7 @@
def _deepcopy_atomic(x, memo):
return x
d[type(None)] = _deepcopy_atomic
+d[type(Ellipsis)] = _deepcopy_atomic
d[int] = _deepcopy_atomic
d[long] = _deepcopy_atomic
d[float] = _deepcopy_atomic