summaryrefslogtreecommitdiffstats
path: root/Include/pylifecycle.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-05-12 21:59:25 (GMT)
committerGitHub <noreply@github.com>2021-05-12 21:59:25 (GMT)
commit6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d (patch)
tree096a9091641c61c9c45ce91ce2daa0c7eff8c121 /Include/pylifecycle.h
parent504ffdae4e0cb7775f3e584c3b1d20c262fdfd7e (diff)
downloadcpython-6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d.zip
cpython-6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d.tar.gz
cpython-6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d.tar.bz2
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).
Diffstat (limited to 'Include/pylifecycle.h')
-rw-r--r--Include/pylifecycle.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/pylifecycle.h b/Include/pylifecycle.h
index 783fcb4..7925eaf 100644
--- a/Include/pylifecycle.h
+++ b/Include/pylifecycle.h
@@ -37,10 +37,10 @@ PyAPI_FUNC(int) Py_FrozenMain(int argc, char **argv);
PyAPI_FUNC(int) Py_BytesMain(int argc, char **argv);
/* In pathconfig.c */
-PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
+Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
PyAPI_FUNC(wchar_t *) Py_GetProgramName(void);
-PyAPI_FUNC(void) Py_SetPythonHome(const wchar_t *);
+Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetPythonHome(const wchar_t *);
PyAPI_FUNC(wchar_t *) Py_GetPythonHome(void);
PyAPI_FUNC(wchar_t *) Py_GetProgramFullPath(void);
@@ -48,7 +48,7 @@ PyAPI_FUNC(wchar_t *) Py_GetProgramFullPath(void);
PyAPI_FUNC(wchar_t *) Py_GetPrefix(void);
PyAPI_FUNC(wchar_t *) Py_GetExecPrefix(void);
PyAPI_FUNC(wchar_t *) Py_GetPath(void);
-PyAPI_FUNC(void) Py_SetPath(const wchar_t *);
+Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetPath(const wchar_t *);
#ifdef MS_WINDOWS
int _Py_CheckPython3(void);
#endif