Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commented Aug 8, 2025

Remove private _PyThreadState and _PyInterpreterState C API
functions: move them to the internal C API (pycore_pystate.h and
pycore_interp.h). Don't export most of these functions anymore, but
still export functions used by tests.

Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C
API, but keep it in the stable API.

  • Doc: minor change

  • Revert "Doc: minor change"

This reverts commit ebfa093.

  • [Doc] Remove unnecessary quotes from typing (See Also section)

  • [Doc] Remove unnecessary quotes from typing


(cherry picked from commit f06fcb7)

Co-authored-by: Adorilson Bezerra adorilson@gmail.com
Co-authored-by: Victor Stinner vstinner@python.org


📚 Documentation preview 📚: https://cpython-previews--137541.org.readthedocs.build/

* pythongh-106320: Remove private _PyInterpreterState functions (pythonGH-106335) Remove private _PyThreadState and _PyInterpreterState C API functions: move them to the internal C API (pycore_pystate.h and pycore_interp.h). Don't export most of these functions anymore, but still export functions used by tests. Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C API, but keep it in the stable API. * Doc: minor change * Revert "Doc: minor change" This reverts commit ebfa093. * [Doc] Remove unnecessary quotes from typing (See Also section) * [Doc] Remove unnecessary quotes from typing --------- (cherry picked from commit f06fcb7) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
@picnixz
Copy link
Member

picnixz commented Aug 8, 2025

Hum, apparently, the commit message included some previous PR. Well, we can't fix it on main now :(

@hugovkhugovk merged commit 3df0842 into python:3.14Aug 8, 2025
39 checks passed
@github-project-automationgithub-project-automationbot moved this from Todo to Done in Docs PRsAug 8, 2025
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
…37207) (python#137541) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
@miss-islingtonmiss-islington deleted the backport-f06fcb7-3.14 branch January 2, 2026 18:57
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip issueskip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants

@miss-islington@picnixz@orsenthil@hugovk@adorilson