Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PEP 743: Omit PyList_GET_ITEM#4507

Open
crusaderky wants to merge 1 commit intopython:mainpython/peps:mainfrom
crusaderky:PyList_GET_ITEMcrusaderky/peps:PyList_GET_ITEMCopy head branch name to clipboard
Open

PEP 743: Omit PyList_GET_ITEM#4507
crusaderky wants to merge 1 commit intopython:mainpython/peps:mainfrom
crusaderky:PyList_GET_ITEMcrusaderky/peps:PyList_GET_ITEMCopy head branch name to clipboard

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.