peps
peps copied to clipboard
PEP 743: Omit ``PyList_GET_ITEM``
- 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/
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?
Right, Py_COMPAT_API_VERSION can be used with the limited C API.