Skip to content

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-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 [email protected]
Co-authored-by: Victor Stinner [email protected]


📚 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 <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
@picnixz picnixz assigned hugovk and picnixz and unassigned picnixz Aug 8, 2025
@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 :(

@hugovk hugovk merged commit 3df0842 into python:3.14 Aug 8, 2025
39 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Aug 8, 2025
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants