summaryrefslogtreecommitdiffstats
path: root/Include/sysmodule.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/sysmodule.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/sysmodule.h')
-rw-r--r--Include/sysmodule.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/sysmodule.h b/Include/sysmodule.h
index 670e5d2..8c8f7c4 100644
--- a/Include/sysmodule.h
+++ b/Include/sysmodule.h
@@ -22,11 +22,11 @@ PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);
PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
-PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *);
-PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *);
-PyAPI_FUNC(int) PySys_HasWarnOptions(void);
+Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *);
+Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *);
+Py_DEPRECATED(3.11) PyAPI_FUNC(int) PySys_HasWarnOptions(void);
-PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *);
+Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *);
PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
#ifndef Py_LIMITED_API