Author: Carl Friedrich Bolz <[email protected]>
Branch: value-profiling
Changeset: r79064:f34e31af6e4f
Date: 2015-08-19 18:25 +0200
http://bitbucket.org/pypy/pypy/changeset/f34e31af6e4f/
Log: argh! _immutable_ overrides quasi-immutability
diff --git a/pypy/interpreter/pycode.py b/pypy/interpreter/pycode.py
--- a/pypy/interpreter/pycode.py
+++ b/pypy/interpreter/pycode.py
@@ -55,9 +55,11 @@
class PyCode(eval.Code):
"CPython-style code objects."
- _immutable_ = True
- _immutable_fields_ = ["co_consts_w[*]", "co_names_w[*]", "co_varnames[*]",
- "co_freevars[*]", "co_cellvars[*]",
+ _immutable_fields_ = ["_signature", "co_argcount", "co_cellvars[*]",
+ "co_code", "co_consts_w[*]", "co_filename",
+ "co_firstlineno", "co_flags", "co_freevars[*]",
+ "co_lnotab", "co_names_w[*]", "co_nlocals",
+ "co_stacksize", "co_varnames[*]",
"_args_as_cellvars[*]", "_known_types_version?"]
def __init__(self, space, argcount, nlocals, stacksize, flags,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit