From 0cfdd6854de1a9324374ac3b39aaf3bb188f7f35 Mon Sep 17 00:00:00 2001 From: epitavy <32581827+epitavy@users.noreply.github.com> Date: Wed, 2 Dec 2026 16:39:12 +0100 Subject: [PATCH] Rephrase sentence in doc of subprocess.run() timeout parameter --- Doc/library/subprocess.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 189b0818276879..693934c08ada0a 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -59,10 +59,10 @@ underlying :class:`Popen` interface can be used directly. A *timeout* may be specified in seconds, it is internally passed on to :meth:`Popen.communicate`. If the timeout expires, the child process will be killed and waited for. The :exc:`TimeoutExpired` exception will be - re-raised after the child process has terminated. The initial process - creation itself cannot be interrupted on many platform APIs so you are not - guaranteed to see a timeout exception until at least after however long - process creation takes. + re-raised after the child process has terminated. On many platform APIs, + the initial creation of the process cannot be interrupted; therefore, + there is no guarantee that a timeout exception will be raised before the + process creation is completed, regardless of how long it takes. The *input* argument is passed to :meth:`Popen.communicate` and thus to the subprocess's stdin. If used it must be a byte sequence, or a string if