[pypy-svn] r33028 - pypy/dist/pypy/objspace/cclp
auc at codespeak.net
auc at codespeak.net
Mon Oct 9 09:39:17 CEST 2006
Author: auc
Date: Mon Oct 9 09:39:14 2006
New Revision: 33028
Modified:
pypy/dist/pypy/objspace/cclp/misc.py
Log:
oops, forgot to commit that
Modified: pypy/dist/pypy/objspace/cclp/misc.py
==============================================================================
--- pypy/dist/pypy/objspace/cclp/misc.py (original)
+++ pypy/dist/pypy/objspace/cclp/misc.py Mon Oct 9 09:39:14 2006
@@ -1,4 +1,5 @@
from pypy.interpreter import gateway, baseobjspace
+from pypy.rpython.objectmodel import we_are_translated
# commonly imported there, used from types, variable, thread
from pypy.module._stackless.clonable import ClonableCoroutine
@@ -34,3 +35,10 @@
NO_DEBUG_INFO[0] = not NO_DEBUG_INFO[0]
app_switch_debug_info = gateway.interp2app(switch_debug_info)
+
+def is_interpreted(space):
+ if we_are_translated():
+ return space.w_False
+ else:
+ return space.w_True
+app_is_interpreted = gateway.interp2app(is_interpreted)
More information about the Pypy-commit
mailing list