Skip to content

Commit 0cfdd68

Browse files
authored
Rephrase sentence in doc of subprocess.run() timeout parameter
1 parent dd3f5cd commit 0cfdd68

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Doc/library/subprocess.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ underlying :class:`Popen` interface can be used directly.
5959
A *timeout* may be specified in seconds, it is internally passed on to
6060
:meth:`Popen.communicate`. If the timeout expires, the child process will be
6161
killed and waited for. The :exc:`TimeoutExpired` exception will be
62-
re-raised after the child process has terminated. The initial process
63-
creation itself cannot be interrupted on many platform APIs so you are not
64-
guaranteed to see a timeout exception until at least after however long
65-
process creation takes.
62+
re-raised after the child process has terminated. On many platform APIs,
63+
the initial creation of the process cannot be interrupted; therefore,
64+
there is no guarantee that a timeout exception will be raised before the
65+
process creation is completed, regardless of how long it takes.
6666

6767
The *input* argument is passed to :meth:`Popen.communicate` and thus to the
6868
subprocess's stdin. If used it must be a byte sequence, or a string if

0 commit comments

Comments
 (0)