1. Pypy
  2. Untitled project
  3. pypy

Source

pypy / pypy / doc / getting-started-python.rst

Diff from to

File pypy/doc/getting-started-python.rst

 
 
 PyPy's Python interpreter is a very compliant Python
-interpreter implemented in RPython.  When compiled, it passes most of 
+interpreter implemented in RPython.  When compiled, it passes most of
 `CPythons core language regression tests`_ and comes with many of the extension
 modules included in the standard library including ``ctypes``. It can run large
 libraries such as Django_ and Twisted_. There are some small behavioral
 
 .. _`CPython differences`: cpython_differences.html
 
-To actually use PyPy's Python interpreter, the first thing to do is to 
-`download a pre-built PyPy`_ for your architecture.  
+To actually use PyPy's Python interpreter, the first thing to do is to
+`download a pre-built PyPy`_ for your architecture.
 
 .. _`download a pre-built PyPy`:  http://pypy.org/download.html
 
 
 .. _`windows document`: windows.html
 
-You can translate the whole of PyPy's Python interpreter to low level C code,
-or `CLI code`_.  If you intend to build using gcc, check to make sure that
+You can translate the whole of PyPy's Python interpreter to low level C code.
+If you intend to build using gcc, check to make sure that
 the version you have is not 4.2 or you will run into `this bug`_.
 
 .. _`this bug`: https://bugs.launchpad.net/ubuntu/+source/gcc-4.2/+bug/187391
 
 
 3. Translation is time-consuming -- 45 minutes on a very fast machine --
-   and RAM-hungry.  As of March 2011, you will need **at least** 2 GB of 
-   memory on a 
-   32-bit machine and 4GB on a 64-bit machine.  If your memory resources 
+   and RAM-hungry.  As of March 2011, you will need **at least** 2 GB of
+   memory on a
+   32-bit machine and 4GB on a 64-bit machine.  If your memory resources
    are constrained, or your machine is slow you might want to pick the
    `optimization level`_ `1` in the next step.  A level of
    `2` or `3` or `jit` gives much better results, though.  But if all
 
    Let me stress this again: at ``--opt=1`` you get the Boehm
    GC, which is here mostly for historical and for testing reasons.
-   You really do not want to pick it for a program you intend to use.  
+   You really do not want to pick it for a program you intend to use.
    The resulting ``pypy-c`` is slow.
 
 4. Run::
     >>>> pystone.main()
     Pystone(1.1) time for 50000 passes = 0.060004
     This machine benchmarks at 833278 pystones/second
-    >>>> 
+    >>>>
 
 Note that pystone gets faster as the JIT kicks in.
 This executable can be moved around or copied on other machines; see
     cd pypy
     python bin/pyinteractive.py
 
-After a few seconds (remember: this is running on top of CPython), 
-you should be at the PyPy prompt, which is the same as the Python 
+After a few seconds (remember: this is running on top of CPython),
+you should be at the PyPy prompt, which is the same as the Python
 prompt, but with an extra ">".
 
 Now you are ready to start running Python code.  Most Python
-modules should work if they don't involve CPython extension 
+modules should work if they don't involve CPython extension
 modules.  **This is slow, and most C modules are not present by
 default even if they are standard!**  Here is an example of
-determining PyPy's performance in pystones:: 
+determining PyPy's performance in pystones::
 
-    >>>> from test import pystone 
+    >>>> from test import pystone
     >>>> pystone.main(10)
 
 The parameter is the number of loops to run through the test. The
 default is 50000, which is far too many to run in a non-translated
-PyPy version (i.e. when PyPy's interpreter itself is being interpreted 
+PyPy version (i.e. when PyPy's interpreter itself is being interpreted
 by CPython).
 
 pyinteractive.py options
 
 
 .. _Mono: http://www.mono-project.com/Main_Page
-.. _`CLI backend`: cli-backend.html
 .. _`Boehm-Demers-Weiser garbage collector`: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
-.. _clr: clr-module.html
 .. _`CPythons core language regression tests`: http://buildbot.pypy.org/summary?category=applevel&branch=%3Ctrunk%3E
 
 .. include:: _ref.txt