Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jan 12, 2026

The forkserver was not passing sys.argv to its main() function, causing
sys.argv to be empty during __main__ module import in child processes. This
fixes a non-obvious regression inadvertently introduced by the gh-126631 main
preloading fix.
(cherry picked from commit 298d544)

Co-authored-by: Gregory P. Smith [email protected]

…er `__main__` preload (pythonGH-143717)

The forkserver was not passing sys.argv to its main() function, causing
sys.argv to be empty during `__main__` module import in child processes. This
fixes a non-obvious regression inadvertently introduced by the pythongh-126631 main
preloading fix.
(cherry picked from commit 298d544)

Co-authored-by: Gregory P. Smith <[email protected]>
@gpshead gpshead enabled auto-merge (squash) January 12, 2026 23:52
@gpshead gpshead merged commit f663aa2 into python:3.14 Jan 13, 2026
49 checks passed
@miss-islington miss-islington deleted the backport-298d544-3.14 branch January 13, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants