Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r47661:d709e95094ae
Date: 2011-09-28 15:00 -0400
http://bitbucket.org/pypy/pypy/changeset/d709e95094ae/
Log: mark a few fields as immutable.
diff --git a/pypy/module/_sre/interp_sre.py b/pypy/module/_sre/interp_sre.py
--- a/pypy/module/_sre/interp_sre.py
+++ b/pypy/module/_sre/interp_sre.py
@@ -99,6 +99,7 @@
# SRE_Pattern class
class W_SRE_Pattern(Wrappable):
+ _immutable_fields_ = ["code", "flags"]
def cannot_copy_w(self):
space = self.space
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit