Skip to content

gh-132775: Add _PyImport_GetModulesRef() to the Internal C-API #132977

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

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Apr 25, 2025

This 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__.

@ericsnowcurrently
Copy link
Member Author

I'm folding this into gh-132978.

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.

1 participant