gh-129033: Remove _PyInterpreterState_SetConfig() function (#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().
This commit is contained in:
Victor Stinner 2025-01-20 16:31:33 +01:00 committed by GitHub
parent 573c181502
commit 8ceb6cb117
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 22 additions and 500 deletions

View file

@ -2880,20 +2880,6 @@ _PyInterpreterState_GetConfig(PyInterpreterState *interp)
}
int
_PyInterpreterState_GetConfigCopy(PyConfig *config)
{
PyInterpreterState *interp = _PyInterpreterState_GET();
PyStatus status = _PyConfig_Copy(config, &interp->config);
if (PyStatus_Exception(status)) {
_PyErr_SetFromPyStatus(status);
return -1;
}
return 0;
}
const PyConfig*
_Py_GetConfig(void)
{