summaryrefslogtreecommitdiffstats
path: root/Include/pylifecycle.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-06-01 12:06:32 (GMT)
committerGitHub <noreply@github.com>2023-06-01 12:06:32 (GMT)
commitc67121ac6bf8ee36d79de92ef68fc3fde178d2a3 (patch)
treedc23a71f3b65e9dc384d85992a9f73c46c0f6af3 /Include/pylifecycle.h
parentec0082ca460f6b5eaf987536d28d6bc252322307 (diff)
downloadcpython-c67121ac6bf8ee36d79de92ef68fc3fde178d2a3.zip
cpython-c67121ac6bf8ee36d79de92ef68fc3fde178d2a3.tar.gz
cpython-c67121ac6bf8ee36d79de92ef68fc3fde178d2a3.tar.bz2
gh-105145: Deprecate Py_GetPath() function (#105179)
Deprecate old Python initialization functions: * PySys_ResetWarnOptions() * Py_GetExecPrefix() * Py_GetPath() * Py_GetPrefix() * Py_GetProgramFullPath() * Py_GetProgramName() * Py_GetPythonHome() _tkinter.c uses sys.executable instead of Py_GetProgramName() and uses sys.prefix instead of Py_GetPrefix().
Diffstat (limited to 'Include/pylifecycle.h')
-rw-r--r--Include/pylifecycle.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Include/pylifecycle.h b/Include/pylifecycle.h
index 0190b4c..34f32a5 100644
--- a/Include/pylifecycle.h
+++ b/Include/pylifecycle.h
@@ -34,12 +34,12 @@ PyAPI_FUNC(int) Py_Main(int argc, wchar_t **argv);
PyAPI_FUNC(int) Py_BytesMain(int argc, char **argv);
/* In pathconfig.c */
-PyAPI_FUNC(wchar_t *) Py_GetProgramName(void);
-PyAPI_FUNC(wchar_t *) Py_GetPythonHome(void);
-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);
+Py_DEPRECATED(3.13) PyAPI_FUNC(wchar_t *) Py_GetProgramName(void);
+Py_DEPRECATED(3.13) PyAPI_FUNC(wchar_t *) Py_GetPythonHome(void);
+Py_DEPRECATED(3.13) PyAPI_FUNC(wchar_t *) Py_GetProgramFullPath(void);
+Py_DEPRECATED(3.13) PyAPI_FUNC(wchar_t *) Py_GetPrefix(void);
+Py_DEPRECATED(3.13) PyAPI_FUNC(wchar_t *) Py_GetExecPrefix(void);
+Py_DEPRECATED(3.13) PyAPI_FUNC(wchar_t *) Py_GetPath(void);
#ifdef MS_WINDOWS
int _Py_CheckPython3(void);
#endif