Skip to content

Conversation

miss-islington
Copy link
Contributor

gh-126631: gh-137996: fix pre-loading of __main__

The main_path parameter was renamed init_main_from_name, update the
forkserver code accordingly. This was leading to slower startup times when people
were trying to preload the main module.


(cherry picked from commit 0912b3a)

Co-authored-by: Duane Griffin duaneg@dghda.com
Co-authored-by: Gregory P. Smith greg@krypto.org

…onGH-135295)

pythongh-126631: pythongh-137996: fix pre-loading of `__main__`

The `main_path` parameter was renamed `init_main_from_name`, update the
forkserver code accordingly.  This was leading to slower startup times when people
were trying to preload the main module.

---------
(cherry picked from commit 0912b3a)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
@gpshead gpshead self-assigned this Sep 7, 2025
@gpshead gpshead enabled auto-merge (squash) October 8, 2025 00:13
@gpshead gpshead merged commit 64f0e2d into python:3.14 Oct 8, 2025
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants