From 3749404ba5968c5571d47bc8a984f008a7eb8f80 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sat, 27 Sep 2014 23:21:35 +0300 Subject: Issue #22251: Fix ReST markup to avoid errors building docs. --- Doc/extending/newtypes.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Doc/extending') diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index 45b57211b6..2dfcdc0f31 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -983,6 +983,7 @@ done. This can be done using the :c:func:`PyErr_Fetch` and } .. note:: + There are limitations to what you can safely do in a deallocator function. First, if your type supports garbage collection (using :c:member:`~PyTypeObject.tp_traverse` and/or :c:member:`~PyTypeObject.tp_clear`), some of the object's members can have been @@ -997,6 +998,7 @@ done. This can be done using the :c:func:`PyErr_Fetch` and :c:member:`~PyTypeObject.tp_finalize` type method. .. seealso:: + :pep:`442` explains the new finalization scheme. .. index:: -- cgit v1.2.1