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-129033: Remove _PyInterpreterState_SetConfig() function #129048

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jan 20, 2025

Remove _PyInterpreterState_GetConfigCopy() and
_PyInterpreterState_SetConfig() private functions. PEP 741 "Python Configuration C API" added a better public C API: PyConfig_Get() and PyConfig_Set().

Remove _PyInterpreterState_GetConfigCopy() and
_PyInterpreterState_SetConfig() private functions. PEP 741 "Python
Configuration C API" added a better public C API: PyConfig_Get() and
PyConfig_Set().
@vstinner
Copy link
Member Author

I got impacted by #129060 issue. I rebased my PR on top of it to fix the issue.

@vstinner
Copy link
Member Author

Oh, test_py_config_isoloated_per_interpreter() of test_capi.test_misc fails with in Free Threaded build:

ImportError: module _testcapi does not support loading in subinterpreters

@vstinner vstinner merged commit 8ceb6cb into python:main Jan 20, 2025
41 checks passed
@vstinner vstinner deleted the remove_set_config branch January 20, 2025 15:31
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 21, 2025
…hon#129048)

Remove _PyInterpreterState_GetConfigCopy() and
_PyInterpreterState_SetConfig() private functions. PEP 741 "Python
Configuration C API" added a better public C API: PyConfig_Get() and
PyConfig_Set().
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.

1 participant