From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 23 Jul 2025 14:42:53 +0000 (+0200) Subject: [3.13] gh-137043: mention `PyList_GET_ITEM` as unsafe borrowed API in free-threading... X-Git-Tag: v3.13.6~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ffeef10b2e4bf4f115c33d52c4bb98ef52e5689;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-137043: mention `PyList_GET_ITEM` as unsafe borrowed API in free-threading docs (GH-137042) (#137046) gh-137043: mention `PyList_GET_ITEM` as unsafe borrowed API in free-threading docs (GH-137042) (cherry picked from commit 38b936cc9912fc6847265917f94af53f0bf228e9) Co-authored-by: Guido Imperiale --- diff --git a/Doc/howto/free-threading-extensions.rst b/Doc/howto/free-threading-extensions.rst index c7d1c00cd17d..df94336d2c22 100644 --- a/Doc/howto/free-threading-extensions.rst +++ b/Doc/howto/free-threading-extensions.rst @@ -159,6 +159,8 @@ that return :term:`strong references `. +===================================+===================================+ | :c:func:`PyList_GetItem` | :c:func:`PyList_GetItemRef` | +-----------------------------------+-----------------------------------+ +| :c:func:`PyList_GET_ITEM` | :c:func:`PyList_GetItemRef` | ++-----------------------------------+-----------------------------------+ | :c:func:`PyDict_GetItem` | :c:func:`PyDict_GetItemRef` | +-----------------------------------+-----------------------------------+ | :c:func:`PyDict_GetItemWithError` | :c:func:`PyDict_GetItemRef` |