Skip to content

Commit 818b89e

Browse files
committed
Adjust function pairs.
1 parent b165f30 commit 818b89e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

peps/pep-0788.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ beyond repair. In turn, this PEP intends to completely deprecate the existing
277277
is rejected, all of the APIs can be replaced with more correct ``PyThreadState``
278278
functions in the current C API:
279279

280-
- :c:func:`PyGILState_Ensure`: :c:func:`PyThreadState_Swap` / :c:func:`PyThreadState_New`
281-
- :c:func:`PyGILState_Release`: :c:func:`PyThreadState_Clear` / :c:func:`PyThreadState_Delete`
280+
- :c:func:`PyGILState_Ensure`: :c:func:`PyThreadState_Swap` & :c:func:`PyThreadState_New`
281+
- :c:func:`PyGILState_Release`: :c:func:`PyThreadState_Clear` & :c:func:`PyThreadState_Delete`
282282
- :c:func:`PyGILState_GetThisThreadState`: :c:func:`PyThreadState_Get`
283283
- :c:func:`PyGILState_Check`: ``PyThreadState_GetUnchecked() != NULL``
284284

@@ -767,7 +767,7 @@ make the ownership and lifetime of the thread state clearer:
767767
This was ultimately rejected for two reasons:
768768
769769
- The proposed API has closer usage to
770-
:c:func:`PyGILState_Ensure` / :c:func:`PyGILState_Release`, which helps
770+
:c:func:`PyGILState_Ensure` & :c:func:`PyGILState_Release`, which helps
771771
ease the transition for old codebases.
772772
- It's `significantly easier <https://discuss.python.org/t/83959/15>`_
773773
for code-generators like Cython to use, as there isn't any additional

0 commit comments

Comments
 (0)