Author: Anton Gulenko <anton.gule...@googlemail.com>
Branch: storage
Changeset: r814:ed9b4d7d02a1
Date: 2014-05-12 10:45 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/ed9b4d7d02a1/

Log:    two-line trace output for process switches

diff --git a/spyvm/interpreter.py b/spyvm/interpreter.py
--- a/spyvm/interpreter.py
+++ b/spyvm/interpreter.py
@@ -84,7 +84,8 @@
                 s_new_context.push(nlr.value)
             except ProcessSwitch, p:
                 if self.trace:
-                    print "====== Switch from: %s to: %s ======" % 
(s_new_context.short_str(), p.s_new_context.short_str())
+                    print "====== Switched process from: %s" % 
s_new_context.short_str()
+                                       print "====== to: %s " % 
p.s_new_context.short_str()
                 s_new_context = p.s_new_context
 
     def loop_bytecodes(self, s_context, may_context_switch=True):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to