aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Doc/c-api/sys.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-06-01 14:06:32 +0200
committerGitHub <noreply@github.com>2023-06-01 12:06:32 +0000
commitc67121ac6bf8ee36d79de92ef68fc3fde178d2a3 (patch)
treedc23a71f3b65e9dc384d85992a9f73c46c0f6af3 /Doc/c-api/sys.rst
parentec0082ca460f6b5eaf987536d28d6bc252322307 (diff)
downloadcpython-c67121ac6bf8ee36d79de92ef68fc3fde178d2a3.tar.gz
cpython-c67121ac6bf8ee36d79de92ef68fc3fde178d2a3.zip
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 'Doc/c-api/sys.rst')
-rw-r--r--Doc/c-api/sys.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/c-api/sys.rst b/Doc/c-api/sys.rst
index ad6005b7c7a..c4077b2a562 100644
--- a/Doc/c-api/sys.rst
+++ b/Doc/c-api/sys.rst
@@ -237,6 +237,9 @@ accessible to C code. They all work with the current interpreter thread's
Reset :data:`sys.warnoptions` to an empty list. This function may be
called prior to :c:func:`Py_Initialize`.
+ .. deprecated-removed:: 3.13 3.15
+ Clear :data:`sys.warnoptions` and :data:`!warnings.filters` instead.
+
.. c:function:: void PySys_WriteStdout(const char *format, ...)
Write the output string described by *format* to :data:`sys.stdout`. No