Éric Araujo <mer...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue11572> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com