[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 38b936cc99)

Co-authored-by: Guido Imperiale <crusaderky@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-07-23 16:42:53 +02:00 committed by GitHub
parent 9ab885e0a1
commit 6ffeef10b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -159,6 +159,8 @@ that return :term:`strong references <strong reference>`.
+===================================+===================================+
| :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` |