Skip to content

Conversation

gpshead
Copy link
Member

@gpshead gpshead commented Sep 7, 2025

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)

pythonGH-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>
@bedevere-app bedevere-app bot added the type-bug An unexpected behavior, bug, or error label Sep 7, 2025
@gpshead gpshead self-assigned this Sep 7, 2025
@gpshead gpshead merged commit 9a6137a into python:3.13 Sep 8, 2025
75 of 77 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.

2 participants