Skip to content
Merged
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
14 changes: 7 additions & 7 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5530,16 +5530,16 @@ written in Python, such as a mail server's external command delivery program.
.. versionadded:: 3.7


.. function:: spawnl(mode, path, ...)
spawnle(mode, path, ..., env)
.. function:: spawnl(mode, file, ...)
spawnle(mode, file, ..., env)
spawnlp(mode, file, ...)
spawnlpe(mode, file, ..., env)
spawnv(mode, path, args)
spawnve(mode, path, args, env)
spawnv(mode, file, args)
spawnve(mode, file, args, env)
spawnvp(mode, file, args)
spawnvpe(mode, file, args, env)

Execute the program *path* in a new process.
Execute the program *file* in a new process.

(Note that the :mod:`subprocess` module provides more powerful facilities for
spawning new processes and retrieving their results; using that module is
Expand Down Expand Up @@ -5571,7 +5571,7 @@ written in Python, such as a mail server's external command delivery program.
discussed in the next paragraph), the new environment is used as the source of
the :envvar:`PATH` variable. The other variants, :func:`spawnl`,
:func:`spawnle`, :func:`spawnv`, and :func:`spawnve`, will not use the
:envvar:`PATH` variable to locate the executable; *path* must contain an
:envvar:`PATH` variable to locate the executable; *file* must contain an
appropriate absolute or relative path.

For :func:`spawnle`, :func:`spawnlpe`, :func:`spawnve`, and :func:`spawnvpe`
Expand All @@ -5592,7 +5592,7 @@ written in Python, such as a mail server's external command delivery program.
L = ['cp', 'index.html', '/dev/null']
os.spawnvpe(os.P_WAIT, 'cp', L, os.environ)

.. audit-event:: os.spawn mode,path,args,env os.spawnl
.. audit-event:: os.spawn mode,file,args,env os.spawnl

.. availability:: Unix, Windows, not WASI, not Android, not iOS.

Expand Down
Loading