Skip to content

Commit 74259f8

Browse files
committed
Fix lint and remove dead comment.
1 parent 6ca2499 commit 74259f8

4 files changed

Lines changed: 3979 additions & 4272 deletions

File tree

Doc/c-api/interp-lifecycle.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,8 @@ it possible to avoid these issues by temporarily preventing finalization:
608608
609609
.. seealso::
610610
611-
:pep:`788` explains the design, motivation and rationale
612-
for these APIs.
611+
:pep:`788` explains the design, motivation and rationale
612+
for these APIs.
613613
614614
.. c:type:: PyInterpreterGuard
615615
@@ -625,19 +625,19 @@ it possible to avoid these issues by temporarily preventing finalization:
625625
guards for that interpreter. This means that if you forget to close an
626626
interpreter guard, the process will **permanently hang** during
627627
finalization!
628-
629-
Holding a guard for an interpreter is similar to holding a
630-
:term:`strong reference` to a Python object, except finalization does not happen
631-
automatically after all guards are released: it requires an explicit
632-
:c:func:`Py_EndInterpreter` call.
633-
628+
629+
Holding a guard for an interpreter is similar to holding a
630+
:term:`strong reference` to a Python object, except finalization does not happen
631+
automatically after all guards are released: it requires an explicit
632+
:c:func:`Py_EndInterpreter` call.
633+
634634
.. versionadded:: next
635635
636636
637637
.. c:function:: PyInterpreterGuard *PyInterpreterGuard_FromCurrent(void)
638638
639639
Create a finalization guard for the current interpreter. This will prevent
640-
finalization until the guard is closed.
640+
finalization until the guard is closed.
641641
642642
For example:
643643
@@ -770,8 +770,8 @@ deleted. This can be done using interpreter views.
770770
Failure indicates that the process is out of memory or that the main
771771
interpreter has finalized (or never existed).
772772
773-
Using this function in extension libraries is strongly discouraged, because
774-
it typically compromises the library's subinterpreter support. It exists
773+
Using this function in extension libraries is strongly discouraged, because
774+
it typically compromises the library's subinterpreter support. It exists
775775
for exceptional cases where there is no other option (such as when a native
776776
threading library doesn't provide a ``void *arg`` parameter that could be
777777
used to store a ``PyInterpreterGuard`` or ``PyInterpreterView`` pointer).

0 commit comments

Comments
 (0)