The following C API functions were deprecated in Python 3.11 by issue #88279: * ``PySys_AddWarnOptionUnicode()`` * ``PySys_AddWarnOption()`` * ``PySys_AddXOption()`` * ``PySys_HasWarnOptions()`` * ``PySys_SetArgvEx()`` * ``PySys_SetArgv()`` * ``PySys_SetPath()`` * ``Py_SetPath()`` * ``Py_SetProgramName()`` * ``Py_SetPythonHome()`` * ``Py_SetStandardStreamEncoding()`` * ``_Py_SetProgramFullPath()`` IMO it's now time to remove them: the new PyConfig API is available since Python 3.8: https://docs.python.org/dev/c-api/init_config.html <!-- gh-linked-prs --> ### Linked PRs * gh-105154 * gh-105179 <!-- /gh-linked-prs -->