Skip to content
Snippets Groups Projects
Commit 8c3c298c authored by Armin Rigo's avatar Armin Rigo
Browse files

Add a "see also" link to the doc

parent 9e772296
No related branches found
No related tags found
No related merge requests found
......@@ -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">&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>
<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">&quot;filename&quot;</span><span class="p">,</span> <span class="s">&quot;w&quot;</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">&quot;stuff&quot;</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
......
......@@ -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
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