We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1189097 commit 6125f07Copy full SHA for 6125f07
Doc/c-api/typeobj.rst
@@ -2148,9 +2148,8 @@ and :c:data:`PyType_Type` effectively act as defaults.)
2148
to be called before attempting to break reference cycles, ensuring
2149
that it finds the object in a sane state.
2150
2151
- :c:member:`~PyTypeObject.tp_finalize` should not mutate the current exception
2152
- status. Non-trivial finalizers should use :c:func:`PyErr_GetRaisedException`,
2153
- an example::
+ :c:member:`~PyTypeObject.tp_finalize` should not mutate the current exception status;
+ therefore, a recommended way to write a non-trivial finalizer is::
2154
2155
static void
2156
local_finalize(PyObject *self)
0 commit comments