[issue44113] [C API] Deprecate legacy API for configure Python initialization

STINNER Victor report at bugs.python.org
Wed May 12 20:31:40 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

commit 6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d
Author: Victor Stinner <vstinner at python.org>
Date:   Wed May 12 23:59:25 2021 +0200

    bpo-44113: Deprecate old functions to config Python init (GH-26060)
    
    Deprecate the following functions to configure the Python
    initialization:
    
    * PySys_AddWarnOption()
    * PySys_AddWarnOptionUnicode()
    * PySys_AddXOption()
    * PySys_HasWarnOptions()
    * Py_SetPath()
    * Py_SetProgramName()
    * Py_SetPythonHome()
    * Py_SetStandardStreamEncoding()
    * _Py_SetProgramFullPath()
    
    Use the new PyConfig API of the Python Initialization Configuration
    instead (PEP 587).

commit a0ccc404ca649c2a1635511a09df2454e47b4d66
Author: Dong-hee Na <donghee.na at python.org>
Date:   Thu May 13 08:22:18 2021 +0900

    bpo-44113: Update __xxtestfuzz not to use Py_SetProgramName (GH-26083)

commit ec7c09b9bc9a8f333a0295b41ea88986c320448c
Author: Victor Stinner <vstinner at python.org>
Date:   Thu May 13 02:27:56 2021 +0200

    bpo-44113: Fix compiler warning in PySys_AddWarnOption() (GH-26084)
    
    Ignore Py_DEPRECATED() warning on purpose.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44113>
_______________________________________


More information about the Python-bugs-list mailing list