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 -->