SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72137 0 38 Python

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.
T
Tim Peters committed
1cd701732fe324adace84a955d48a3dc7753ee59
Parent: 94f9b86