Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-106320: Remove private _PyInterpreterState functions #106325

Merged
merged 2 commits into from
Jul 2, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jul 2, 2023

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.

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.
@vstinner vstinner enabled auto-merge (squash) July 2, 2023 00:54
@vstinner vstinner disabled auto-merge July 2, 2023 01:16
@vstinner vstinner enabled auto-merge (squash) July 2, 2023 01:16
@vstinner vstinner merged commit 8571b27 into python:main Jul 2, 2023
@vstinner vstinner deleted the WIP_remove_interp branch July 2, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants