[pypy-commit] lang-smalltalk storage: two-line trace output for process switches

anton_gulenko noreply at buildbot.pypy.org
Wed May 14 14:51:00 CEST 2014


Author: Anton Gulenko <anton.gulenko at 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):


More information about the pypy-commit mailing list