gh-149504: Fix reentrant site startup processing by zsol · Pull Request #149516 · python/cpython · GitHub
Skip to content

gh-149504: Fix reentrant site startup processing#149516

Closed
zsol wants to merge 2 commits into
python:mainfrom
zsol:zsol/gh-149504-reentrant-site-startup
Closed

gh-149504: Fix reentrant site startup processing#149516
zsol wants to merge 2 commits into
python:mainfrom
zsol:zsol/gh-149504-reentrant-site-startup

Conversation

@zsol

@zsol zsol commented May 7, 2026

Copy link
Copy Markdown
Member

Copy and clear pending startup file data before executing import lines or .start entry points so recursive site.addsitedir() calls process a separate batch.

Fixes #149504

Copy and clear pending startup file data before executing import lines or .start entry points so recursive site.addsitedir() calls process a separate batch.
@StanFromIreland

Copy link
Copy Markdown
Member

@zsol zsol marked this pull request as ready for review May 7, 2026 23:13
@zsol zsol requested a review from FFY00 as a code owner May 7, 2026 23:13
@warsaw

warsaw commented May 11, 2026

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[3.15] Re-entrant calls to site.addsitedir() can fail (affecting uv run)

3 participants