Skip to content

Commit 92add04

Browse files
committed
Remove distracting hyperlinks.
1 parent e324111 commit 92add04

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

peps/pep-0788.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@ created by the author of this PEP:
205205
erroneously call the C API inside ``Py_BEGIN_ALLOW_THREADS`` blocks or
206206
omit ``PyGILState_Ensure`` in fresh threads.
207207

208-
Again, :c:func:`PyGILState_Ensure` gets an :term:`attached thread state`
209-
for the thread on both with-GIL and free-threaded builds.
210-
An attached thread state is always needed to call the C API, so
211-
:c:func:`PyGILState_Ensure` still needs to be called on free-threaded builds,
212-
but with a name like "ensure GIL", it's not immediately clear that that's true.
208+
Again, :c:func:`PyGILState_Ensure` gets an attached thread state for the
209+
thread on both with-GIL and free-threaded builds. An attached thread state is
210+
always needed to call the C API, so :c:func:`PyGILState_Ensure` still needs
211+
to be called on free-threaded builds, but with a name like "ensure GIL", it's
212+
not immediately clear that that's true.
213213

214214
.. _pep-788-subinterpreters-gilstate:
215215

@@ -234,7 +234,7 @@ used on objects shared between the threads.
234234

235235
For example, if the thread had access to object A, which belongs to a
236236
subinterpreter, but then called :c:func:`PyGILState_Ensure`, the thread would
237-
have an :term:`attached thread state` pointing to the main interpreter,
237+
have an attached thread state pointing to the main interpreter,
238238
not the subinterpreter. This means that any GIL assumptions about the
239239
object are wrong, because there is no synchronization between the two GILs.
240240

0 commit comments

Comments
 (0)