]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44113: Deprecate old functions to config Python init (GH-26060)
authorVictor Stinner <vstinner@python.org>
Wed, 12 May 2021 21:59:25 +0000 (23:59 +0200)
committerGitHub <noreply@github.com>
Wed, 12 May 2021 21:59:25 +0000 (23:59 +0200)
commit6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d
tree096a9091641c61c9c45ce91ce2daa0c7eff8c121
parent504ffdae4e0cb7775f3e584c3b1d20c262fdfd7e
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).
Doc/c-api/init.rst
Doc/c-api/memory.rst
Doc/c-api/sys.rst
Doc/whatsnew/3.11.rst
Include/cpython/pylifecycle.h
Include/pylifecycle.h
Include/sysmodule.h
Misc/NEWS.d/next/C API/2021-05-12-12-24-45.bpo-44113.DcgOqE.rst [new file with mode: 0644]
Programs/_testembed.c