Skip to content

Commit 407062f

Browse files
committed
Documentation fixes.
1 parent 1096a32 commit 407062f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/c-api/threads.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ will hang the process during interpreter finalization (see
551551
.. versionadded:: 3.4
552552
553553
.. soft-deprecated:: 3.15
554-
Use :c:expr:`PyThreadState_GetUnchecked() != NULL` instead.
554+
Use ``PyThreadState_GetUnchecked() != NULL`` instead.
555555
556556
557557
.. _fork-and-threads:
@@ -905,7 +905,7 @@ pointer and a void pointer argument.
905905
possible. If the main thread is busy executing a system call,
906906
*func* won't be called before the system call returns. This
907907
function is generally **not** suitable for calling Python code from
908-
arbitrary C threads. Instead, use the :ref:`PyGILState API<gilstate>`.
908+
arbitrary C threads. Instead, use :c:func:`PyThreadState_EnsureFromView`.
909909
910910
.. versionadded:: 3.1
911911

0 commit comments

Comments
 (0)