[pypy-svn] r69068 - pypy/trunk/pypy/interpreter
cfbolz at codespeak.net
cfbolz at codespeak.net
Sun Nov 8 17:09:06 CET 2009
Author: cfbolz
Date: Sun Nov 8 17:09:06 2009
New Revision: 69068
Modified:
pypy/trunk/pypy/interpreter/gateway.py
Log:
(pedronis, arigo, cfbolz): make BuiltinActivations immutable
Modified: pypy/trunk/pypy/interpreter/gateway.py
==============================================================================
--- pypy/trunk/pypy/interpreter/gateway.py (original)
+++ pypy/trunk/pypy/interpreter/gateway.py Sun Nov 8 17:09:06 2009
@@ -257,6 +257,7 @@
activation_cls = type("BuiltinActivation_UwS_%s" % label,
(BuiltinActivation,), d)
+ activation_cls._immutable_ = True
cache[key] = activation_cls, self.run_args
return activation_cls
@@ -270,6 +271,7 @@
class BuiltinActivation(object):
+ _immutable_ = True
def __init__(self, behavior):
"""NOT_RPYTHON"""
More information about the Pypy-commit
mailing list