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-105145: Remove old functions to config Python init #105154

Merged
merged 2 commits into from
Jun 1, 2023

Commits on May 31, 2023

  1. pythongh-105145: Remove old functions to config Python init

    Remove the following old functions to configure the Python
    initialization, deprecated in Python 3.11:
    
    * PySys_AddWarnOptionUnicode()
    * PySys_AddWarnOption()
    * PySys_AddXOption()
    * PySys_HasWarnOptions()
    * PySys_SetArgvEx()
    * PySys_SetArgv()
    * PySys_SetPath()
    * Py_SetPath()
    * Py_SetProgramName()
    * Py_SetPythonHome()
    * Py_SetStandardStreamEncoding()
    * _Py_SetProgramFullPath()
    
    Most of these functions are kept in the stable ABI, except:
    
    * Py_SetStandardStreamEncoding()
    * _Py_SetProgramFullPath()
    
    Update Doc/extending/embedding.rst and Doc/extending/extending.rst to
    use the new PyConfig API.
    
    _testembed.c:
    
    * check_stdio_details() now sets stdio_encoding and stdio_errors
      of PyConfig.
    * Add definitions of functions removed from the API but kept for the
      stable ABI.
    * test_init_from_config() and test_init_read_set() now use
      PyConfig_SetString() instead of PyConfig_SetBytesString().
    
    Remove _Py_ClearStandardStreamEncoding() internal function.
    vstinner committed May 31, 2023
    Configuration menu
    Copy the full SHA
    1453a74 View commit details
    Browse the repository at this point in the history
  2. Run make regen-limited-abi

    vstinner committed May 31, 2023
    Configuration menu
    Copy the full SHA
    833ddf7 View commit details
    Browse the repository at this point in the history