Skip to content

gh-105922: Use PyImport_AddModuleRef() function#105999

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:add_module_ref
Jun 22, 2023
Merged

gh-105922: Use PyImport_AddModuleRef() function#105999
vstinner merged 1 commit intopython:mainfrom
vstinner:add_module_ref

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jun 22, 2023

Replace PyImport_AddModuleObject() + Py_XNewRef() with PyImport_AddModuleRef() to get directly a strong reference.

Loading
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.

2 participants