Author: Armin Rigo <ar...@tunes.org> Branch: extradoc Changeset: r487:8c3c298c6cd2 Date: 2014-04-11 11:10 +0200 http://bitbucket.org/pypy/pypy.org/changeset/8c3c298c6cd2/
Log: Add a "see also" link to the doc diff --git a/compat.html b/compat.html --- a/compat.html +++ b/compat.html @@ -88,6 +88,7 @@ <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">"filename"</span><span class="p">,</span> <span class="s">"w"</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">"stuff"</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> <p>or using the <tt class="docutils literal">with</tt> keyword</p> <div class="syntax python"><pre><span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="s">"filename"</span><span class="p">,</span> <span class="s">"w"</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</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">"stuff"</span><span class="p">)</span><br/></pre></div> +<p>See <a class="reference external" href="http://pypy.readthedocs.org/en/latest/cpython_differences.html#differences-related-to-garbage-collection-strategies">more details here</a>.</p> </li> <li><p class="first">For the same reason, some functions and attributes of the <tt class="docutils literal">gc</tt> module behave in a slightly different way: for example, <tt class="docutils literal">gc.enable</tt> and diff --git a/source/compat.txt b/source/compat.txt --- a/source/compat.txt +++ b/source/compat.txt @@ -74,6 +74,8 @@ with open("filename", "w") as f: f.write("stuff") + See `more details here`_. + * For the same reason, some functions and attributes of the ``gc`` module behave in a slightly different way: for example, ``gc.enable`` and ``gc.disable`` are supported, but instead of enabling and disabling the GC, @@ -98,5 +100,6 @@ .. _`CPython C API`: http://docs.python.org/c-api/ .. _`standard library modules`: http://docs.python.org/library/ .. _`our dev site`: http://pypy.readthedocs.org/en/latest/cpython_differences.html +.. _`more details here`: http://pypy.readthedocs.org/en/latest/cpython_differences.html#differences-related-to-garbage-collection-strategies .. _`compatibility wiki`: https://bitbucket.org/pypy/compatibility/wiki/Home _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit