bpo-46449: use strong reference in deepfreeze modules #30987
bpo-46449: use strong reference in deepfreeze modules #30987vstinner merged 3 commits intopython:mainfrom
Conversation
vstinner
left a comment
There was a problem hiding this comment.
LGTM.
I confirm that this PR fix https://bugs.python.org/issue46449:
$ ./python -I -X showrefcount -c pass
[8 refs, 0 blocks]
Without the PR:
$ ./python -I -X showrefcount -c pass
[-5 refs, 0 blocks]
vstinner
left a comment
There was a problem hiding this comment.
Can you please add a comment in the _frozen structure (Include/cpython/import.h) to mention explicitly that get_code must return a strong reference?
Done. |
Done! |
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
Merged, thanks! |
https://bugs.python.org/issue46449
Automerge-Triggered-By: GH:tiran