Skip to content

Commit

Permalink
[Doc] Fix os.spawn* functions
Browse files Browse the repository at this point in the history
Replace argument names *path*  for *file*, the real names from them
  • Loading branch information
adorilson committed Jun 26, 2024
1 parent 5b16e9e commit e54d2ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4794,16 +4794,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 @@ -4835,7 +4835,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 Down

0 comments on commit e54d2ca

Please sign in to comment.