Skip to content
Snippets Groups Projects
Commit afbc50a4 authored by Maciej Fijalkowski's avatar Maciej Fijalkowski
Browse files

Update html

parent 3ac500ba
No related branches found
No related tags found
No related merge requests found
......@@ -47,5 +47,5 @@
<div>
<div id="main">
<h1 class="title">Python compatibility</h1>
<p>PyPy implements Python language version 2.5. It supports all of the core
<p>PyPy implements the Python language version 2.5. It supports all of the core
language, passing Python test suite (with minor modifications that were
......@@ -51,7 +51,7 @@
language, passing Python test suite (with minor modifications that were
already accepted in main python in newer versions). It supports most
of commonly used Python <a class="reference external" href="http://docs.python.org/library/">standard library modules</a>, list below.</p>
<p>PyPy does not support <a class="reference external" href="http://docs.python.org/c-api/">CPython C API</a>, which means that third party
already accepted in the main python in newer versions). It supports most
of the commonly used Python <a class="reference external" href="http://docs.python.org/library/">standard library modules</a>; details below.</p>
<p>PyPy does not support the <a class="reference external" href="http://docs.python.org/c-api/">CPython C API</a>, which means that third party
libraries for python, written in C, will not work.</p>
<p>Standard library modules supported by PyPy, in alphabetical order:</p>
<ul class="simple">
......@@ -73,5 +73,5 @@
</ul>
<p>Known differencies that are not going to be fixed:</p>
<ul>
<li><p class="first">PyPy does not support refcounting semantics. The code below
<li><p class="first">PyPy does not support refcounting semantics. The following code
won't fill the file immediately, but only after a certain period
......@@ -77,5 +77,5 @@
won't fill the file immediately, but only after a certain period
of time, when the GC will collect</p>
of time, when the GC does a collection:</p>
<div class="syntax python"><pre><span class="nb">open</span><span class="p">(</span><span class="s">&quot;filename&quot;</span><span class="p">,</span> <span class="s">&quot;w&quot;</span><span class="p">)</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="s">&quot;stuff&quot;</span><span class="p">)</span><br/></pre></div>
<p>The proper fix is</p>
<div class="syntax python"><pre><span class="n">f</span> <span class="o">=</span> <span class="nb">open</span><span class="p">(</span><span class="s">&quot;filename&quot;</span><span class="p">,</span> <span class="s">&quot;w&quot;</span><span class="p">)</span><br/><span class="n">f</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="s">&quot;stuff&quot;</span><span class="p">)</span><br/><span class="n">f</span><span class="o">.</span><span class="n">close</span><span class="p">()</span><br/></pre></div>
......@@ -85,8 +85,8 @@
<li><p class="first">We don't support certain attributes that were decided to be
implementation-dependent. For example, <tt class="docutils literal"><span class="pre">gc.get_referrers</span></tt> does not exist.
Others may have different behavior; for example, <tt class="docutils literal"><span class="pre">gc.enable</span></tt> and
<tt class="docutils literal"><span class="pre">gc.disable</span></tt> are supported, but they don't enable and disable GC, but
instead enable and disable running of finalizers.</p>
<tt class="docutils literal"><span class="pre">gc.disable</span></tt> are supported, but they don't enable and disable the GC, but
instead just enable and disable the running of finalizers.</p>
</li>
<li><p class="first">You can't attach a <tt class="docutils literal"><span class="pre">__del__</span></tt> method to a class after its creation.</p>
</li>
......
......@@ -48,5 +48,6 @@
<div id="main">
<h1 class="title">Download and install</h1>
<p>Here are the various binaries of <strong>PyPy 1.2</strong> that we provide for x86 Linux,
Mac OS/X or Windows. This is the first release of PyPy containing JIT, hence
Mac OS/X or Windows. This is the first release of PyPy containing
a JIT compiler, hence
the main goal is to try this out and see how it works for you. We put
......@@ -52,6 +53,6 @@
the main goal is to try this out and see how it works for you. We put
a lot of effort into making JIT a stable piece of software and we don't
observe crashes, however, please consider it a beta version to try things out.</p>
a lot of effort into making the JIT a stable piece of software and we don't
observe crashes; however, please consider it a beta version to try things out.</p>
<ul class="download-menu simple">
<li>Download<ul>
<li><a class="reference internal" href="#with-a-jit-compiler">With a JIT Compiler</a> <strong>(recommended!)</strong></li>
......@@ -114,7 +115,8 @@
</ul>
<p>It is also possible to <a class="reference internal" href="#translate">translate</a> a version that includes both
sandboxing and the JIT compiler, although as the JIT is relatively
complicated, this reduce a bit the level of confidence we can put in it.</p>
complicated, this reduce a bit the level of confidence we can put in
the result.</p>
<p>If your CPU is a 64-bit machine and you want to <a class="reference internal" href="#translate">translate</a> a 32-bit
version of PyPy yourself, <a class="reference internal" href="#here-are-hints">here are hints</a>.</p>
<p>The Windows and the native 64-bit versions both need testing and careful
......
......@@ -48,9 +48,9 @@
<div id="main">
<h1 class="title">Features</h1>
<p><strong>PyPy 1.2</strong> implements <strong>Python 2.5.</strong> It supports all of the core
language, passing Python test suite (with minor modifications that were
already accepted in main python in newer versions). It supports most
of commonly used Python standard library modules. For known differences
language, passing the Python test suite (with minor modifications that were
already accepted in the main python in newer versions). It supports most
of the commonly used Python standard library modules. For known differences
with CPython, see our <a class="reference external" href="compat.html">compatibility</a> page. If you are interested in
helping with 2.6, 2.7 or 3.x features, <a class="reference external" href="contact.html">contact us</a>!</p>
<p>PyPy 1.2 runs essentially only on Intel <a class="reference external" href="http://en.wikipedia.org/wiki/IA-32">x86 (IA-32)</a>. On 64-bit platforms
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment