File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -277,8 +277,8 @@ beyond repair. In turn, this PEP intends to completely deprecate the existing
277277is rejected, all of the APIs can be replaced with more correct ``PyThreadState ``
278278functions 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:
767767This 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
You can’t perform that action at this time.
0 commit comments