Skip to content

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

Closed
ericsnowcurrently wants to merge 1 commit intopython:mainfrom
ericsnowcurrently:add-pyimport-get-modules-ref
Closed

gh-132775: Add _PyImport_GetModulesRef() to the Internal C-API#132977
ericsnowcurrently wants to merge 1 commit intopython:mainfrom
ericsnowcurrently:add-pyimport-get-modules-ref

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