Skip to content

Commit a9f1ee1

Browse files
committed
simplify wording
1 parent 1f53dc3 commit a9f1ee1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Doc/c-api/typeobj.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,9 +2148,8 @@ and :c:data:`PyType_Type` effectively act as defaults.)
21482148
to be called before attempting to break reference cycles, ensuring
21492149
that it finds the object in a sane state.
21502150

2151-
:c:member:`~PyTypeObject.tp_finalize` should not mutate the current exception status;
2152-
therefore, a recommended way to write a non-trivial finalizer is with
2153-
:c:func:`PyErr_GetRaisedException`
2151+
:c:member:`~PyTypeObject.tp_finalize` should not mutate the current exception
2152+
status. Non-trivial finalizers should use :c:func:`PyErr_GetRaisedException`.
21542153

21552154
**Inheritance:**
21562155

0 commit comments

Comments
 (0)