mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py.
Thanks to Eric Snow for the patch.
This commit is contained in:
parent
1fc3ec91cc
commit
62228dbd6c
6 changed files with 45 additions and 106 deletions
|
|
@ -69,7 +69,6 @@ PyInterpreterState_New(void)
|
|||
Py_FatalError("Can't initialize threads for interpreter");
|
||||
#endif
|
||||
interp->modules = NULL;
|
||||
interp->modules_reloading = NULL;
|
||||
interp->modules_by_index = NULL;
|
||||
interp->sysdict = NULL;
|
||||
interp->builtins = NULL;
|
||||
|
|
@ -114,7 +113,6 @@ PyInterpreterState_Clear(PyInterpreterState *interp)
|
|||
Py_CLEAR(interp->codec_error_registry);
|
||||
Py_CLEAR(interp->modules);
|
||||
Py_CLEAR(interp->modules_by_index);
|
||||
Py_CLEAR(interp->modules_reloading);
|
||||
Py_CLEAR(interp->sysdict);
|
||||
Py_CLEAR(interp->builtins);
|
||||
Py_CLEAR(interp->importlib);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue