[pypy-svn] r17702 - pypy/dist/pypy/translator/goal

arigo at codespeak.net arigo at codespeak.net
Tue Sep 20 18:26:41 CEST 2005


Author: arigo
Date: Tue Sep 20 18:26:40 2005
New Revision: 17702

Modified:
   pypy/dist/pypy/translator/goal/targetcompiler.py
   pypy/dist/pypy/translator/goal/unixcheckpoint.py
Log:
The name 'cont' is clearer than 'run' to mean 'continue running from the
forked checkpoint'.

targetcompiler's entry point should not return an instance which cannot
be converted to a PyObject*.


Modified: pypy/dist/pypy/translator/goal/targetcompiler.py
==============================================================================
--- pypy/dist/pypy/translator/goal/targetcompiler.py	(original)
+++ pypy/dist/pypy/translator/goal/targetcompiler.py	Tue Sep 20 18:26:40 2005
@@ -19,7 +19,8 @@
 
 def entry_point( s1, s2 ):
     global space
-    return target_ast_compile( space, s1, s2 )
+    pycode = target_ast_compile( space, s1, s2 )
+    return 'target_ast_compile --> %r' % (pycode,)
 
 # _____ Define and setup target ___
 def target(geninterp=True):

Modified: pypy/dist/pypy/translator/goal/unixcheckpoint.py
==============================================================================
--- pypy/dist/pypy/translator/goal/unixcheckpoint.py	(original)
+++ pypy/dist/pypy/translator/goal/unixcheckpoint.py	Tue Sep 20 18:26:40 2005
@@ -7,7 +7,7 @@
 def restartable_point(auto=None):
     while True:
         while True:
-            print '---> Checkpoint: run / restart / quit / pdb ?'
+            print '---> Checkpoint: cont / restart / quit / pdb ?'
             if auto:
                 print 'auto-%s' % (auto,)
                 line = auto
@@ -18,7 +18,7 @@
                 except (KeyboardInterrupt, EOFError), e:
                     print '(%s ignored)' % e.__class__.__name__
                     continue
-            if line == 'run':
+            if line in ('run', 'cont'):
                 break
             if line == 'quit':
                 raise SystemExit



More information about the Pypy-commit mailing list