Skip to content

gh-129033: Remove _Py_InitializeMain() function #129034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 20, 2025

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