diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-01 12:06:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-01 12:06:32 (GMT) |
commit | c67121ac6bf8ee36d79de92ef68fc3fde178d2a3 (patch) | |
tree | dc23a71f3b65e9dc384d85992a9f73c46c0f6af3 /Include/pylifecycle.h | |
parent | ec0082ca460f6b5eaf987536d28d6bc252322307 (diff) | |
download | cpython-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.h | 12 |
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 |