diff options
author | Victor Stinner <vstinner@python.org> | 2022-05-06 03:24:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 03:24:29 (GMT) |
commit | 299692afd8b8520383e6badeb907b285fc7c0909 (patch) | |
tree | 825d0469420265842ae5fa6ca3b61a766d0671d3 /Doc/c-api/sys.rst | |
parent | 5f29268283aba12d4f2c83cab4966286e0ac5128 (diff) | |
download | cpython-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.rst | 7 |
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 |