Skip to content

Commit 6e7b9ce

Browse files
kovanclaude
andcommitted
gh-136879: Make os.spawn* arg signatures consistent with os.exec*
Update os.spawnl, spawnle, spawnlp, and spawnlpe function signatures to show arg0, arg1, ... explicitly, matching the os.execl family of functions for consistency. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7e2c9bd commit 6e7b9ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/os.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5254,10 +5254,10 @@ written in Python, such as a mail server's external command delivery program.
52545254
.. versionadded:: 3.7
52555255

52565256

5257-
.. function:: spawnl(mode, path, ...)
5258-
spawnle(mode, path, ..., env)
5259-
spawnlp(mode, file, ...)
5260-
spawnlpe(mode, file, ..., env)
5257+
.. function:: spawnl(mode, path, arg0, arg1, ...)
5258+
spawnle(mode, path, arg0, arg1, ..., env)
5259+
spawnlp(mode, file, arg0, arg1, ...)
5260+
spawnlpe(mode, file, arg0, arg1, ..., env)
52615261
spawnv(mode, path, args)
52625262
spawnve(mode, path, args, env)
52635263
spawnvp(mode, file, args)

0 commit comments

Comments
 (0)