Message 132140 - Python tracker
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