[pypy-svn] r35962 - pypy/dist/pypy/interpreter
mwh at codespeak.net
mwh at codespeak.net
Fri Dec 22 18:48:33 CET 2006
Author: mwh
Date: Fri Dec 22 18:48:31 2006
New Revision: 35962
Modified:
pypy/dist/pypy/interpreter/pyframe.py
Log:
this is enough to stop various attributes moving up from PyCode to Code, but
it's probably not the cleanest solution.
Modified: pypy/dist/pypy/interpreter/pyframe.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyframe.py (original)
+++ pypy/dist/pypy/interpreter/pyframe.py Fri Dec 22 18:48:31 2006
@@ -47,6 +47,7 @@
instr_prev = -1
def __init__(self, space, code, w_globals, closure):
+ assert isinstance(code, pycode.PyCode)
self.pycode = code
eval.Frame.__init__(self, space, w_globals, code.co_nlocals)
# XXX hack: FlowSpace directly manipulates stack
More information about the Pypy-commit
mailing list