[pypy-commit] pypy default: mark a few fields as immutable.
alex_gaynor
noreply at buildbot.pypy.org
Wed Sep 28 21:00:55 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
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
More information about the pypy-commit
mailing list