Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 32882:331e60d8ce6d legacy-trunk
PyImport_ExecCodeModuleEx(): remove module from sys.modules in error cases.
PyImport_ReloadModule(): restore the module to sys.modules in error cases.
load_package(): semantic-neutral refactoring from an earlier stab at
this patch; giving it a common error exit made the code
easier to follow, so retaining that part.
_RemoveModule(): new little utility to delete a key from sys.modules.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Mon, 02 Aug 2004 03:52:12 +0000 |
| parents | 748129e6e108 |
| children | f455bbe7ea7e |
comparison
equal
deleted
inserted
replaced
| 32881:26b306894b9e | 32882:331e60d8ce6d |
|---|
