summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/sys.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-05-06 03:24:29 (GMT)
committerGitHub <noreply@github.com>2022-05-06 03:24:29 (GMT)
commit299692afd8b8520383e6badeb907b285fc7c0909 (patch)
tree825d0469420265842ae5fa6ca3b61a766d0671d3 /Doc/c-api/sys.rst
parent5f29268283aba12d4f2c83cab4966286e0ac5128 (diff)
downloadcpython-299692afd8b8520383e6badeb907b285fc7c0909.zip
cpython-299692afd8b8520383e6badeb907b285fc7c0909.tar.gz
cpython-299692afd8b8520383e6badeb907b285fc7c0909.tar.bz2
gh-88279: Deprecate PySys_SetArgvEx() (#92363)
Deprecate the following C functions: * PySys_SetArgv() * PySys_SetArgvEx() * PySys_SetPath()
Diffstat (limited to 'Doc/c-api/sys.rst')
-rw-r--r--Doc/c-api/sys.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/c-api/sys.rst b/Doc/c-api/sys.rst
index 66216ee..5e8d993 100644
--- a/Doc/c-api/sys.rst
+++ b/Doc/c-api/sys.rst
@@ -264,10 +264,17 @@ accessible to C code. They all work with the current interpreter thread's
.. c:function:: void PySys_SetPath(const wchar_t *path)
+ This API is kept for backward compatibility: setting
+ :c:member:`PyConfig.module_search_paths` and
+ :c:member:`PyConfig.module_search_paths_set` should be used instead, see
+ :ref:`Python Initialization Configuration <init-config>`.
+
Set :data:`sys.path` to a list object of paths found in *path* which should
be a list of paths separated with the platform's search path delimiter
(``:`` on Unix, ``;`` on Windows).
+ .. deprecated:: 3.11
+
.. c:function:: void PySys_WriteStdout(const char *format, ...)
Write the output string described by *format* to :data:`sys.stdout`. No