[pypy-commit] pypy default: mention this difference in cpython-differences.rst

antocuni noreply at buildbot.pypy.org
Fri Jun 3 15:04:03 CEST 2011

Author: Antonio Cuni <anto.cuni at gmail.com>
Changeset: r44662:5084cbcec765
Date: 2011-06-03 15:17 +0200

Log:	mention this difference in cpython-differences.rst

diff --git a/pypy/doc/cpython_differences.rst b/pypy/doc/cpython_differences.rst
--- a/pypy/doc/cpython_differences.rst
+++ b/pypy/doc/cpython_differences.rst
@@ -136,6 +136,11 @@
 next access.  Any code that uses weak proxies must carefully catch such
 ``ReferenceError`` at any place that uses them.
+As a side effect, the ``finally`` clause inside a generator will be executed
+only when the generator object is garbage collected (see `issue 736`__).
+.. __: http://bugs.pypy.org/issue736
 There are a few extra implications for the difference in the GC.  Most
 notably, if an object has a ``__del__``, the ``__del__`` is never called more
 than once in PyPy; but CPython will call the same ``__del__`` several times

More information about the pypy-commit mailing list