[Python-checkins] r61841 - in python/trunk: Lib/copy.py Misc/NEWS
raymond.hettinger
python-checkins at python.org
Mon Mar 24 09:17:40 CET 2008
Author: raymond.hettinger
Date: Mon Mar 24 09:17:39 2008
New Revision: 61841
Modified:
python/trunk/Lib/copy.py
python/trunk/Misc/NEWS
Log:
Issue 2460: Make Ellipsis objects copyable.
Modified: python/trunk/Lib/copy.py
==============================================================================
--- python/trunk/Lib/copy.py (original)
+++ python/trunk/Lib/copy.py Mon Mar 24 09:17:39 2008
@@ -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
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Mon Mar 24 09:17:39 2008
@@ -66,6 +66,8 @@
- Issue #2432: give DictReader the dialect and line_num attributes
advertised in the docs.
+- Issue #2460: Make Ellipsis object copyable.
+
- Issue #1681432: Add triangular distribution to the random module
- Issue #2136: urllib2's auth handler now allows single-quoted realms in the
More information about the Python-checkins
mailing list