https://docs.python.org/3/howto/free-threading-extensions.html#borrowed-references mentions that PyList_GetItem is thread-unsafe due to borrowed references. PyList_GET_ITEM should be added next to it. <!-- gh-linked-prs --> ### Linked PRs * gh-137042 * gh-137045 * gh-137046 <!-- /gh-linked-prs -->
https://docs.python.org/3/howto/free-threading-extensions.html#borrowed-references mentions that PyList_GetItem is thread-unsafe due to borrowed references. PyList_GET_ITEM should be added next to it.
Linked PRs
PyList_GET_ITEM#137042PyList_GET_ITEMas unsafe borrowed API in free-threading docs (GH-137042) #137045PyList_GET_ITEMas unsafe borrowed API in free-threading docs (GH-137042) #137046