From 299692afd8b8520383e6badeb907b285fc7c0909 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 6 May 2022 05:24:29 +0200 Subject: gh-88279: Deprecate PySys_SetArgvEx() (#92363) Deprecate the following C functions: * PySys_SetArgv() * PySys_SetArgvEx() * PySys_SetPath() --- Include/sysmodule.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Include/sysmodule.h') diff --git a/Include/sysmodule.h b/Include/sysmodule.h index 3463c62230..b5087119b1 100644 --- a/Include/sysmodule.h +++ b/Include/sysmodule.h @@ -10,9 +10,9 @@ extern "C" { PyAPI_FUNC(PyObject *) PySys_GetObject(const char *); PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *); -PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **); -PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int); -PyAPI_FUNC(void) PySys_SetPath(const wchar_t *); +Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **); +Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int); +Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetPath(const wchar_t *); PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...) Py_GCC_ATTRIBUTE((format(printf, 1, 2))); -- cgit v1.2.1