mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
bpo-28411: Remove "modules" field from Py_InterpreterState. (#1638)
sys.modules is the one true source.
This commit is contained in:
parent
f5ea83f486
commit
86b7afdfee
18 changed files with 261 additions and 111 deletions
|
|
@ -204,6 +204,13 @@ Importing Modules
|
|||
Return the dictionary used for the module administration (a.k.a.
|
||||
``sys.modules``). Note that this is a per-interpreter variable.
|
||||
|
||||
.. c:function:: PyObject* PyImport_GetModule(PyObject *name)
|
||||
|
||||
Return the already imported module with the given name. If the
|
||||
module has not been imported yet then returns NULL but does not set
|
||||
an error. Returns NULL and sets an error if the lookup failed.
|
||||
|
||||
.. versionadded:: 3.7
|
||||
|
||||
.. c:function:: PyObject* PyImport_GetImporter(PyObject *path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue