Repository navigation
gh-126931: Clarify arguments to os.spawn functions - #162835
dhairyajangir wants to merge 1 commit into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Documentation build overview
|
| 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. | ||
| The "l" variants take each command-line argument as a separate positional |
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
Thank you for your interest in contributing to Python. This is a community-driven project, and we want it to be a welcoming place to learn and collaborate. Contributors are responsible for reviewing and understanding what they submit, checking its claims, and being able to explain changes in their own words. This helps reviewers focus on the contribution and leaves more time to support other contributors. This contribution appears to have been authored with AI assistance. Please explain your contribution in your own words and describe how you checked its correctness. Please read our guidelines for using AI tools. |
|
I don't think the AI draft has been reviewed carefully enough, otherwise unrelated changes would not have been made. |
Fixes gh-126931.
The
os.spawnl*signatures now show the required first command-line argument. The shared documentation explains how both thelandvforms passargv[0], and shows how to run a program without supplying any further arguments.Verified on Windows that
spawnlandspawnvreject missing or emptyargv[0]and can run a child with onlyargv[0]. The full Sphinx lint check passed.I used Codex to trace the implementation, draft the documentation change, and run local checks. I reviewed the patch before submission.