diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-09-08 11:48:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-08 11:48:18 (GMT) |
commit | d700f97b627989d41cd4629dc02969f9a6b56d2f (patch) | |
tree | 19a6aaabc32c32e409d6827bf69116f8b245d72b /Doc | |
parent | fa221d804f1bc07d992f820069bad24f176ed66d (diff) | |
download | cpython-d700f97b627989d41cd4629dc02969f9a6b56d2f.zip cpython-d700f97b627989d41cd4629dc02969f9a6b56d2f.tar.gz cpython-d700f97b627989d41cd4629dc02969f9a6b56d2f.tar.bz2 |
bpo-20104: Change the file_actions parameter of os.posix_spawn(). (GH-6725)
* Make its default value an empty tuple instead of None.
* Make it a keyword-only parameter.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/os.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index b8d6fff..bc8d5a8 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -3394,7 +3394,7 @@ written in Python, such as a mail server's external command delivery program. subprocesses. -.. function:: posix_spawn(path, argv, env, file_actions=None, /, *, \ +.. function:: posix_spawn(path, argv, env, *, file_actions=None, \ setpgroup=None, resetids=False, setsigmask=(), \ setsigdef=(), scheduler=None) @@ -3402,7 +3402,8 @@ written in Python, such as a mail server's external command delivery program. Most users should use :func:`subprocess.run` instead of :func:`posix_spawn`. - The *path*, *args*, and *env* arguments are similar to :func:`execve`. + The positional-only arguments *path*, *args*, and *env* are similar to + :func:`execve`. The *file_actions* argument may be a sequence of tuples describing actions to take on specific file descriptors in the child process between the C |