peps icon indicating copy to clipboard operation
peps copied to clipboard

PEP 743: Omit ``PyList_GET_ITEM``

Open crusaderky opened this issue 6 months ago • 2 comments

  • Change is either:
    • [x] To a Draft PEP
    • [ ] To an Accepted or Final PEP, with Steering Council approval
    • [ ] To fix an editorial issue (markup, typo, link, header, etc)
  • [x] 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 https://github.com/python/cpython/pull/137042.


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

crusaderky avatar Jul 23 '25 13:07 crusaderky

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?

encukou avatar Jul 24 '25 07:07 encukou

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

vstinner avatar Aug 04 '25 13:08 vstinner