Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
Loading