[pypy-commit] pypy faster-nested-scopes: after discussion with armin: cannot use a quasiimmutable field for cells after all.

cfbolz noreply at buildbot.pypy.org
Wed Aug 31 16:45:03 CEST 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: faster-nested-scopes
Changeset: r46946:2df1fc0afe9e
Date: 2011-08-31 16:41 +0200
http://bitbucket.org/pypy/pypy/changeset/2df1fc0afe9e/

Log:	after discussion with armin: cannot use a quasiimmutable field for
	cells after all.

	the main reason is that this is a very subtle problem when we
	introduce py3 (which has the nonlocal keyword).

diff --git a/pypy/interpreter/nestedscope.py b/pypy/interpreter/nestedscope.py
--- a/pypy/interpreter/nestedscope.py
+++ b/pypy/interpreter/nestedscope.py
@@ -8,7 +8,6 @@
 
 class Cell(Wrappable):
     "A simple container for a wrapped value."
-    _immutable_fields_ = ["w_value?"]
 
     def __init__(self, w_value=None):
         self.w_value = w_value


More information about the pypy-commit mailing list