[issue11572] bring Lib/copy.py to 100% coverage
Éric Araujo
report at bugs.python.org
Fri Mar 25 20:21:33 CET 2011
Éric Araujo <merwok at netwok.org> added the comment:
Thanks for the updated patch.
-t = getattr(types, "CodeType", None)
-if t is not None:
- d[t] = _copy_immutable
+d[types.CodeType] = _copy_immutable
What was the use case for this again? The defunct restricted mode, another VM or something else? IOW, are we sure this change isn’t going to break something?
+ def _copy_with_copy_method(x):
+ return x.copy()
+ d[PyStringMap] = _copy_with_copy_method # for Jython
Could even just be d[PyStringMap] = PyStringMap.copy
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11572>
_______________________________________
More information about the Python-bugs-list
mailing list