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--137540.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>
@orsenthilorsenthil enabled auto-merge (squash) August 8, 2025 02:21
@orsenthilorsenthil merged commit 3491368 into python:3.13Aug 8, 2025
31 checks passed
@github-project-automationgithub-project-automationbot moved this from Todo to Done in Docs PRsAug 8, 2025
@miss-islingtonmiss-islington deleted the backport-f06fcb7-3.13 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.

3 participants

@miss-islington@orsenthil@adorilson