@@ -573,7 +573,7 @@ Initializing and finalizing the interpreter
573573 This is similar to :c:func: `Py_AtExit `, but takes an explicit interpreter and
574574 data pointer for the callback.
575575
576- A :term: `thread state ` must be active for *interp *.
576+ There must be an :term: `attached thread state ` for *interp *.
577577
578578 .. versionadded :: 3.13
579579
@@ -1206,7 +1206,7 @@ code, or when embedding the Python interpreter:
12061206
12071207.. c:function:: PyThreadState* PyEval_SaveThread()
12081208
1209- Detach the active :term:`thread state` (if it has been created) and
1209+ Detach the :term:`active thread state` (if it has been created) and
12101210 return it.
12111211
12121212
@@ -1228,7 +1228,7 @@ code, or when embedding the Python interpreter:
12281228
12291229.. c:function:: PyThreadState* PyThreadState_Get()
12301230
1231- Return the active :term:`thread state`. If there is no active :term:`thread state` (such
1231+ Return the :term:`active thread state`. If there is no :term:`active thread state` (such
12321232 as when inside of :c:macro:`Py_BEGIN_ALLOW_THREADS` block), then this issues a fatal
12331233 error (so that the caller needn't check for ``NULL``).
12341234
@@ -1278,7 +1278,7 @@ with sub-interpreters:
12781278 unique call to :c:func:`PyGILState_Ensure` must save the handle for its call
12791279 to :c:func:`PyGILState_Release`.
12801280
1281- When the function returns, there will be an active :term:`thread state`
1281+ When the function returns, there will be an :term:`attached thread state`
12821282 and the thread will be able to call arbitrary Python code. Failure is a fatal error.
12831283
12841284 .. note::
@@ -1418,7 +1418,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
14181418
14191419.. c:function:: void PyThreadState_DeleteCurrent(void)
14201420
1421- Destroy the active :term:`thread state` and detach it.
1421+ Destroy the :term:`active thread state` and detach it.
14221422 The current :term:`thread state` must have been reset with a previous call
14231423 to :c:func:`PyThreadState_Clear`.
14241424
@@ -1482,7 +1482,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
14821482 Issue a fatal error if there no current Python thread state or no current
14831483 interpreter. It cannot return NULL.
14841484
1485- The caller must have an active :term:`thread state`.
1485+ The caller must have an :term:`attached thread state`.
14861486
14871487 .. versionadded:: 3.9
14881488
@@ -1492,7 +1492,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
14921492 Return the interpreter's unique ID. If there was any error in doing
14931493 so then ``-1`` is returned and an error is set.
14941494
1495- The caller must have an active :term:`thread state`.
1495+ The caller must have an :term:`attached thread state`.
14961496
14971497 .. versionadded:: 3.7
14981498
@@ -1552,7 +1552,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
15521552 Asynchronously raise an exception in a thread. The *id* argument is the thread
15531553 id of the target thread; *exc* is the exception object to be raised. This
15541554 function does not steal any references to *exc*. To prevent naive misuse, you
1555- must write your own C extension to call this. Must be called with an active :term:`thread state`.
1555+ must write your own C extension to call this. Must be called with an :term:`attached thread state`.
15561556 Returns the number of thread states modified; this is normally one, but will be
15571557 zero if the thread id isn't found. If *exc* is ``NULL``, the pending
15581558 exception (if any) for the thread is cleared. This raises no exceptions.
@@ -2084,14 +2084,14 @@ Python-level trace functions in previous versions.
20842084
20852085 See also the :func:`sys.setprofile` function.
20862086
2087- The caller must have an active :term:`thread state`.
2087+ The caller must have an :term:`attached thread state`.
20882088
20892089.. c:function:: void PyEval_SetProfileAllThreads(Py_tracefunc func, PyObject *obj)
20902090
20912091 Like :c:func:`PyEval_SetProfile` but sets the profile function in all running threads
20922092 belonging to the current interpreter instead of the setting it only on the current thread.
20932093
2094- The caller must have an active :term:`thread state`.
2094+ The caller must have an :term:`attached thread state`.
20952095
20962096 As :c:func:`PyEval_SetProfile`, this function ignores any exceptions raised while
20972097 setting the profile functions in all threads.
@@ -2110,14 +2110,14 @@ Python-level trace functions in previous versions.
21102110
21112111 See also the :func:`sys.settrace` function.
21122112
2113- The caller must have an active :term:`thread state`.
2113+ The caller must have an :term:`attached thread state`.
21142114
21152115.. c:function:: void PyEval_SetTraceAllThreads(Py_tracefunc func, PyObject *obj)
21162116
21172117 Like :c:func:`PyEval_SetTrace` but sets the tracing function in all running threads
21182118 belonging to the current interpreter instead of the setting it only on the current thread.
21192119
2120- The caller must have an active :term:`thread state`.
2120+ The caller must have an :term:`attached thread state`.
21212121
21222122 As :c:func:`PyEval_SetTrace`, this function ignores any exceptions raised while
21232123 setting the trace functions in all threads.
0 commit comments