[pypy-svn] r64386 - in pypy/trunk: demo pypy/doc

arigo at codespeak.net arigo at codespeak.net
Sun Apr 19 17:10:11 CEST 2009

Author: arigo
Date: Sun Apr 19 17:10:11 2009
New Revision: 64386

Fix demo/bpnn and its doc.

Modified: pypy/trunk/demo/bpnn.py
--- pypy/trunk/demo/bpnn.py	(original)
+++ pypy/trunk/demo/bpnn.py	Sun Apr 19 17:10:11 2009
@@ -11,8 +11,6 @@
     Insert '--help' before 'bpnn.py' for a list of translation options,
     or see the Overview of Command Line Options for translation at
-    Use '--text' before 'bpnn.py' if you don't have Pygame installed.
 # Back-Propagation Neural Networks

Modified: pypy/trunk/pypy/doc/getting-started-translation.txt
--- pypy/trunk/pypy/doc/getting-started-translation.txt	(original)
+++ pypy/trunk/pypy/doc/getting-started-translation.txt	Sun Apr 19 17:10:11 2009
@@ -112,7 +112,7 @@
 There is a small-to-medium demo showing the translator and the annotator::
     cd demo
-    python bpnn.py
+    ../pypy/translator/goal/translate.py --view --annotate bpnn.py
 This causes ``bpnn.py`` to display itself as a call graph and class
 hierarchy.  Clicking on functions shows the flow graph of the particular
@@ -120,8 +120,11 @@
 this information (call graph, local variables' types, attributes of
 instances) is computed by the annotator.
-As soon as you close the PyGame window, the function is turned into C code,
-compiled and executed.
+To turn this example to C code (compiled to the executable ``bpnn-c``),
+type simply::
+    ../pypy/translator/goal/translate.py bpnn.py
 Translating Full Programs

More information about the Pypy-commit mailing list