diff --git a/Doc/library/os.rst b/Doc/library/os.rst index fff27b48ae989c..2f116932affc9b 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -5516,10 +5516,10 @@ written in Python, such as a mail server's external command delivery program. .. versionadded:: 3.7 -.. function:: spawnl(mode, file, ...) - spawnle(mode, file, ..., env) - spawnlp(mode, file, ...) - spawnlpe(mode, file, ..., env) +.. function:: spawnl(mode, file, arg0, ...) + spawnle(mode, file, arg0, ..., env) + spawnlp(mode, file, arg0, ...) + spawnlpe(mode, file, arg0, ..., env) spawnv(mode, file, args) spawnve(mode, file, args, env) spawnvp(mode, file, args) @@ -5545,10 +5545,11 @@ written in Python, such as a mail server's external command delivery program. command-line arguments are passed. The "l" variants are perhaps the easiest to work with if the number of parameters is fixed when the code is written; the individual parameters simply become additional parameters to the - :func:`!spawnl\*` functions. The "v" variants are good when the number of + :func:`!spawnl\*` functions, starting with *arg0*. The "v" variants are good when the number of parameters is variable, with the arguments being passed in a list or tuple as the *args* parameter. In either case, the arguments to the child process must - start with the name of the command being run. + start with the name of the command being run (*arg0* or the first element of *args*), + and cannot be empty. The variants which include a second "p" near the end (:func:`spawnlp`, :func:`spawnlpe`, :func:`spawnvp`, and :func:`spawnvpe`) will use the