{{ message }}
bpo-28411: Support other mappings in PyInterpreterState.modules.#3593
Merged
ericsnowcurrently merged 30 commits intoSep 15, 2017
Merged
Conversation
5a0b590 to
d4d9219
Compare
September 14, 2017 23:33
ncoghlan
reviewed
Sep 15, 2017
ncoghlan
reviewed
Sep 15, 2017
Member
Author
|
FYI, I'm hunting down a refleak (probably in import.c): test_pickle hits it too. Once I track it down and fix it I'm planning on merging. |
Sorry, something went wrong.
ncoghlan
reviewed
Sep 15, 2017
ncoghlan
left a comment
Contributor
There was a problem hiding this comment.
I suspect your reference leaks are coming from the iterators.
Sorry, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
The concrete PyDict_* API is used to interact with PyInterpreterState.modules in a number of places. This isn't compatible with all dict subclasses, nor with other Mapping implementations. This patch switches the concrete API usage to the corresponding abstract API calls.
We also add a PyImport_GetModule() function (and some other helpers) to reduce a bunch of code duplication.
Note that this code was already reviewed and merged as part of #1638. I reverted that and am now splitting it up into more focused parts.
https://bugs.python.org/issue28411