This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients belopolsky, benjamin.peterson, brandon-rhodes, daniel.urban, eric.araujo, ncoghlan, pitrou
Date 2011-03-25.19:21:32
SpamBayes Score 5.3506847e-06
Marked as misclassified No
Message-id <1301080893.11.0.790387190078.issue11572@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-03-25 19:21:33eric.araujosetrecipients: + eric.araujo, ncoghlan, belopolsky, pitrou, benjamin.peterson, daniel.urban, brandon-rhodes
2011-03-25 19:21:33eric.araujosetmessageid: <1301080893.11.0.790387190078.issue11572@psf.upfronthosting.co.za>
2011-03-25 19:21:32eric.araujolinkissue11572 messages
2011-03-25 19:21:32eric.araujocreate