Skip to content

Conversation

crusaderky
Copy link

@crusaderky crusaderky commented Jul 23, 2025

  • Change is either:
    • To a Draft PEP
    • To an Accepted or Final PEP, with Steering Council approval
    • To fix an editorial issue (markup, typo, link, header, etc)
  • PR title prefixed with PEP number (e.g. PEP 123: Summary of changes)

PyList_GET_ITEM should be treated akin to PyList_GetItem when it comes to free-threading considerations.
This PR matches python/cpython#137042.


📚 Documentation preview 📚: https://pep-previews--4507.org.readthedocs.build/

@encukou
Copy link
Member

encukou commented Jul 24, 2025

I think PEP 743 should say that Py_COMPAT_API_VERSION works with limited API (which already excludes PyList_GET_ITEM). @vstinner, would that match your intention?

@vstinner
Copy link
Member

vstinner commented Aug 4, 2025

Right, Py_COMPAT_API_VERSION can be used with the limited C API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants