Skip to content

Commit dd1e8b4

Browse files
Lint docs v3
1 parent 17e8817 commit dd1e8b4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Doc/c-api/init.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,12 @@ Initializing and finalizing the interpreter
390390
time (without calling :c:func:`Py_Initialize` again first). Normally the
391391
return value is ``0``. If there were errors during finalization
392392
(flushing buffered data), ``-1`` is returned.
393-
393+
394394
Note that Python will do a best effort at freeing all memory allocated by the Python
395395
interpreter. Therefore, any C-Extension should make sure to correctly clean up all
396396
of the preveiously allocated PyObjects before using them in subsequent calls to
397-
`Py_Initialize`. Otherwise it introduces vulnerabilities and incorrect behavior.
397+
:c:func:`Py_Initialize`. Otherwise it could introduce vulnerabilities and incorrect
398+
behavior.
398399
399400
This function is provided for a number of reasons. An embedding application
400401
might want to restart Python without having to restart the application itself.

Doc/whatsnew/3.13.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,10 +1366,10 @@ New Features
13661366
* Modified :c:func:`_PyUnicode_ClearInterned` function to always delete all
13671367
interned strings during a call to :c:func:`Py_Finalize`. This makes all
13681368
is backwards incompatible to any C-Extension that holds onto an interned
1369-
string after a call to c:func:`Py_Finalize` and is then reused after a
1370-
call to c:func:`Py_Initialize`. Any issues arising from this behavior will
1369+
string after a call to :c:func:`Py_Finalize` and is then reused after a
1370+
call to :c:func:`Py_Initialize`. Any issues arising from this behavior will
13711371
normally result in crashes during the exectuion of the subsequent call to
1372-
c:func:`Py_Initatilize` from accessing uninitialized memory. To fix, use
1372+
:c:func:`Py_Initatilize` from accessing uninitialized memory. To fix, use
13731373
an address sanitizer (i.e. ASAN) to identify any use-after-free coming from
13741374
an interned string and deallocate it during module shutdown.
13751375
(Contribued by Eddie Elizondo in :gh:`113601`.)

0 commit comments

Comments
 (0)