mirror of
https://github.com/python/cpython.git
synced 2025-09-08 09:51:34 +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
|
@ -2685,7 +2685,7 @@ _PyBuiltin_Init(void)
|
|||
PyType_Ready(&PyZip_Type) < 0)
|
||||
return NULL;
|
||||
|
||||
mod = PyModule_Create(&builtinsmodule);
|
||||
mod = _PyModule_CreateInitialized(&builtinsmodule, PYTHON_API_VERSION);
|
||||
if (mod == NULL)
|
||||
return NULL;
|
||||
dict = PyModule_GetDict(mod);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue