diff options
Diffstat (limited to 'Doc/extending')
-rw-r--r-- | Doc/extending/newtypes.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index 45b5721..2dfcdc0 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:: |