We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85559b4 commit 3dfade8Copy full SHA for 3dfade8
peps/pep-0788.rst
@@ -434,10 +434,8 @@ replace :c:func:`PyGILState_Ensure` and :c:func:`PyGILState_Release`.
434
if the interpreter matches *lock*, it is attached, and otherwise a new
435
thread state is created.
436
437
- The old thread state is stored as a thread view in *\*thread*, and is
438
- to be restored by :c:func:`PyThreadState_Release`.
439
-
440
- Return ``0`` on success, and ``-1`` without an exception set on failure.
+ Return a non-zero thread view of the old thread state on success, and
+ ``0`` on failure.
441
442
.. c:function:: void PyThreadState_Release(PyThreadView lock)
443
0 commit comments