[pypy-svn] extradoc extradoc: trying to make the trace nicer, not sure I'll keep it

cfbolz commits-noreply at bitbucket.org
Fri Mar 25 23:57:04 CET 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: extradoc
Changeset: r3408:e5e37b556d38
Date: 2011-03-25 23:27 +0100
http://bitbucket.org/pypy/extradoc/changeset/e5e37b556d38/

Log:	trying to make the trace nicer, not sure I'll keep it

diff --git a/talk/icooolps2011/code/trace1.tex b/talk/icooolps2011/code/trace1.tex
--- a/talk/icooolps2011/code/trace1.tex
+++ b/talk/icooolps2011/code/trace1.tex
@@ -1,28 +1,33 @@
 \begin{lstlisting}[mathescape,basicstyle=\ttfamily]
 # inst.getattr("a")
-attributes1 = inst.attributes
-result1 = dict.get(attributes1, "a")
-guard(result1 is not None)
+# inside Instance.getfield
+$attributes_1$ = inst.attributes
+$result_1$ = dict.get($attributes_1$, "a")
+guard($result_1$ is not None)
 
 # inst.getattr("b")
-attributes2 = inst.attributes
-v1 = dict.get(attributes2, "b")
-guard(v1 is None)
-cls1 = inst.cls
-methods1 = cls.methods
-result2 = dict.get(methods1, "b")
-guard(result2 is not None)
-v2 = result1 + result2
+# inside Instance.getfield
+$attributes_2$ = inst.attributes
+$v_1$ = dict.get($attributes_2$, "b")
+guard($v_1$ is None)
+# inside Class.find_method
+$cls_1$ = inst.cls
+$methods_1$ = cls.methods
+$result_2$ = dict.get($methods_1$, "b")
+guard($result_2$ is not None)
+$v_2$ = $result_1$ + $result_2$
 
 # inst.getattr("c")
-attributes3 = inst.attributes
-v3 = dict.get(attributes3, "c")
-guard(v3 is None)
-cls1 = inst.cls
-methods2 = cls.methods
-result3 = dict.get(methods2, "c")
-guard(result3 is not None)
+# inside Instance.getfield
+$attributes_3$ = inst.attributes
+$v_3$ = dict.get($attributes_3$, "c")
+guard($v_3$ is None)
+# inside Class.find_method
+$cls_1$ = inst.cls
+$methods_2$ = cls.methods
+$result_3$ = dict.get($methods_2$, "c")
+guard($result_3$ is not None)
 
-v4 = v2 + result3
-return(v4)
+$v_4$ = $v_2$ + $result_3$
+return($v_4$)
 \end{lstlisting}


More information about the Pypy-commit mailing list