[pypy-svn] r7623 - pypy/trunk/src/pypy/objspace/flow

tismer at codespeak.net tismer at codespeak.net
Tue Nov 23 16:08:40 CET 2004


Author: tismer
Date: Tue Nov 23 16:08:40 2004
New Revision: 7623

Modified:
   pypy/trunk/src/pypy/objspace/flow/objspace.py
Log:
added a flag to the class to behave different in appflow.

Modified: pypy/trunk/src/pypy/objspace/flow/objspace.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/flow/objspace.py	(original)
+++ pypy/trunk/src/pypy/objspace/flow/objspace.py	Tue Nov 23 16:08:40 2004
@@ -20,6 +20,8 @@
     """
     
     full_exceptions = False
+
+    resolve_constants = True  # used by the appflowspace    
     
     def initialize(self):
         import __builtin__
@@ -302,7 +304,7 @@
 
     def generic_operator(self, *args_w):
         assert len(args_w) == arity, name+" got the wrong number of arguments"
-        if op:
+        if op and (self.resolve_constants or self.concrete_mode):
             args = []
             for w_arg in args_w:
                 try:



More information about the Pypy-commit mailing list