Skip to content

Commit 1e6285f

Browse files
committed
Remove the rest of reference theft.
1 parent 2a75bfd commit 1e6285f

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

peps/pep-0788.rst

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,6 @@ Strong Interpreter References
460460
461461
Acquire a strong reference to the current interpreter.
462462
463-
This function is generally meant to be used in tandem with
464-
:c:func:`PyThreadState_Ensure`.
465-
466463
This function cannot fail, other than with a fatal error when the caller
467464
doesn't hold an :term:`attached thread state`.
468465
@@ -485,9 +482,6 @@ Strong Interpreter References
485482
486483
Duplicate a strong reference to an interpreter.
487484
488-
This function is generally meant to be used in tandem with
489-
:c:func:`PyThreadState_Ensure`.
490-
491485
This function cannot fail, and the caller doesn't need to hold an
492486
:term:`attached thread state`.
493487
@@ -614,10 +608,6 @@ replace :c:func:`PyGILState_Ensure` and :c:func:`PyGILState_Release`.
614608
subsequent calls to :c:func:`PyGILState_Ensure` in this thread, but
615609
:c:func:`PyGILState_Ensure` will *not* make the thread daemon again.
616610
617-
The reference to the interpreter *ref* is stolen by this function.
618-
Use :c:func:`PyInterpreterRef_Dup` if the reference is intended to be
619-
kept.
620-
621611
Return zero on success, and non-zero with the old attached thread state
622612
restored (which may have been ``NULL``).
623613
@@ -632,9 +622,7 @@ replace :c:func:`PyGILState_Ensure` and :c:func:`PyGILState_Release`.
632622
633623
This function cannot fail, but may hang the thread if the
634624
restored :term:`attached thread state` was daemon and the interpreter
635-
was finalized. If you're running in a thread where that could be an issue,
636-
call :c:func:`PyThreadState_SetDaemon` before :c:func:`PyThreadState_Ensure`
637-
at your own discretion.
625+
was finalized.
638626
639627
``threading`` Shutdown and Behavior
640628
-----------------------------------

0 commit comments

Comments
 (0)