[issue28411] Eliminate PyInterpreterState.modules.

Nick Coghlan report at bugs.python.org
Tue Oct 11 23:39:44 EDT 2016


Nick Coghlan added the comment:

I just checked the docs, and it turns out I'm wrong about this being a previously public API: "There are no public members in this structure."

>From https://docs.python.org/3/c-api/init.html#c.PyInterpreterState

That means the only externally supported API that needs to be preserved is PyImport_GetModuleDict() to get the current thread's module cache, and your original patch already did that.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28411>
_______________________________________


More information about the Python-bugs-list mailing list