Skip to content

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

Closed
ericsnowcurrently wants to merge 1 commit into
python: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 into
python:mainfrom
ericsnowcurrently:add-pyimport-get-modules-ref

Conversation

@ericsnowcurrently

@ericsnowcurrentlyericsnowcurrently commented Apr 25, 2025

Copy link
Copy Markdown
Member

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
Copy Markdown
MemberAuthor

I'm folding this into gh-132978.

Sign up for freeto 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

@ericsnowcurrently