Author: Carl Friedrich Bolz <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit