FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.14] gh-126631: gh-137996: fix pre-loading of `__main__` (GH-135295) by miss-islington · Pull Request #138607 · python/cpython · GitHub

Repository navigation

[3.14] gh-126631: gh-137996: fix pre-loading of __main__ (GH-135295) - #138607

Merged
gpshead merged 3 commits into
python:3.14from
miss-islington:backport-0912b3a-3.14
Oct 8, 2025
Merged

gpshead merged 3 commits into
python:3.14from
miss-islington:backport-0912b3a-3.14

Conversation

Copy link
Copy Markdown
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 self-assigned this Sep 7, 2025
gpshead enabled auto-merge (squash) October 8, 2025 00:13
gpshead merged commit 64f0e2d into python:3.14 Oct 8, 2025
46 checks passed
miss-islington deleted the backport-0912b3a-3.14 branch January 2, 2026 17:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL