Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jan 19, 2025

Copy link
Contributor

@ncoghlan ncoghlan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that main initialization can be effectively no-oped by passing the empty string to run_command, and delayed __main__ execution is just a routine "execute code in a specified module namespace" invocation, I agree we're not losing anything substantial by ditching this.

@vstinner vstinner enabled auto-merge (squash) January 20, 2025 09:57
@vstinner vstinner merged commit 07c3518 into python:main Jan 20, 2025
41 checks passed
@vstinner vstinner deleted the remove_init_main branch January 20, 2025 10:03
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 21, 2025
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