Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-132775: Drop PyUnstable_InterpreterState_GetMainModule()#132978

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrentlyericsnowcurrently commentedApr 25, 2025
edited
Loading

We replace it with_Py_GetMainModule(), and add_Py_CheckMainModule(), but in the internal-only C-API. We also add_PyImport_GetModulesRef(), which is the equivalent of_PyImport_GetModules() that incref's while the lock is held.

This is used by a later change related to pickle and handling__main__.


📚 Documentation preview 📚:https://cpython-previews--132978.org.readthedocs.build/

@ericsnowcurrentlyericsnowcurrentlyforce-pushed thereplace-pyUnstable_interpreterstate_get-main-module branch fromed0d690 to9c9c41cCompareApril 25, 2025 23:02
@ericsnowcurrentlyericsnowcurrently merged commitfe462f5 intopython:mainApr 28, 2025
42 checks passed
@ericsnowcurrentlyericsnowcurrently deleted the replace-pyUnstable_interpreterstate_get-main-module branchApril 28, 2025 18:46
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@kumaraditya303kumaraditya303Awaiting requested review from kumaraditya303kumaraditya303 is a code owner

@brettcannonbrettcannonAwaiting requested review from brettcannonbrettcannon is a code owner

@ncoghlanncoghlanAwaiting requested review from ncoghlanncoghlan is a code owner

@warsawwarsawAwaiting requested review from warsawwarsaw is a code owner

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@ericsnowcurrently

[8]ページ先頭

©2009-2025 Movatter.jp