<p>or using the <ttclass="docutils literal"><spanclass="pre">with</span></tt> keyword:</p>
<preclass="literal-block">
with open("filename", "w") as f:
f.write("stuff")
</pre>
...
...
@@ -101,6 +107,7 @@
<p>won't work.</p>
</li>
</ul>
<p>A more complete list is available at <aclass="reference external"href="http://codespeak.net/pypy/dist/pypy/doc/cpython_differences.html">our dev site</a>.</p>
<p>A special safe version. Read the docs about <aclass="reference external"href="sandbox.html">sandboxing</a>. These
<p>A special safe version. Read the docs about <aclass="reference external"href="features.html#sandboxing">sandboxing</a>. These
binaries work on 32-bit <aclass="reference external"href="http://en.wikipedia.org/wiki/IA-32">x86 (IA-32)</a> CPUs as well as <aclass="reference external"href="http://en.wikipedia.org/wiki/X86-64">x86-64</a> CPUs
in the 32-bit compatibility mode.</p>
<ulclass="simple">
...
...
@@ -133,9 +142,21 @@
version of PyPy yourself, <aclass="reference internal"href="#here-are-hints">here are hints</a>.</p>
<p>For the native 64-bit version, see the issues of the <aclass="reference internal"href="#no-jit-version">no jit version.</a>.</p>
</div>
<divclass="section"id="installing">
<h1>Installing</h1>
<p>All versions are packaged in a <ttclass="docutils literal"><spanclass="pre">tar.bz2</span></tt> or <ttclass="docutils literal"><spanclass="pre">zip</span></tt> file. When
uncompressed, they run in-place. On Linux or Mac OS/X, they can also be
installed by manually moving the files in the following directories:</p>
<preclass="literal-block">
/usr/bin/pypy-c
/usr/share/pypy-1.2/lib-python/*
/usr/share/pypy-1.2/pypy/*
</pre>
<p>You can also install it to <ttclass="docutils literal"><spanclass="pre">/usr/local/bin</span></tt> and <ttclass="docutils literal"><spanclass="pre">/usr/local/share</span></tt>.</p>
</div>
<divclass="section"id="building-from-source">
<spanid="translate"></span><h1>Building from source</h1>
<olclass="arabic">
<li><pclass="first">Get the source code. The following packages contain the source at
the same revision as the above binaries:</p>
<ulclass="simple">
...
...
@@ -136,14 +157,14 @@
<divclass="section"id="building-from-source">
<spanid="translate"></span><h1>Building from source</h1>
<olclass="arabic">
<li><pclass="first">Get the source code. The following packages contain the source at
the same revision as the above binaries:</p>
<ulclass="simple">
<li><aclass="reference external"href="binaries/pypy-1.2.0.tar.bz2">pypy-1.2.0.tar.bz2</a> (sources, Unix line endings)</li>
<li><aclass="reference external"href="binaries/pypy-1.2.0.zip">pypy-1.2.0.zip</a> (sources, Windows line endings)</li>
<li><aclass="reference external"href="download/pypy-1.2-src.tar.bz2">pypy-1.2-src.tar.bz2</a> (sources, Unix line endings)</li>
<li><aclass="reference external"href="download/pypy-1.2-src.zip">pypy-1.2-src.zip</a> (sources, Windows line endings)</li>
</ul>
<p>Or you can checkout the current trunk using <aclass="reference external"href="http://subversion.tigris.org/">Subversion</a> (the trunk
usually works and is of course more up-to-date):</p>
<preclass="literal-block">
svn co http://codespeak.net/svn/pypy/trunk pypy-dist
</pre>
...
...
@@ -144,9 +165,12 @@
</ul>
<p>Or you can checkout the current trunk using <aclass="reference external"href="http://subversion.tigris.org/">Subversion</a> (the trunk
usually works and is of course more up-to-date):</p>
<preclass="literal-block">
svn co http://codespeak.net/svn/pypy/trunk pypy-dist
</pre>
<p>Windows users trying the tarballs are expected to use MSVC.
The trunk version contains fixes to support MinGW32. More
information on <aclass="reference external"href="http://codespeak.net/pypy/trunk/pypy/doc/windows.html">our dev site</a>.</p>
</li>
<li><pclass="first">Enter the <ttclass="docutils literal"><spanclass="pre">goal</span></tt> directory:</p>