[issue18115] Use importlib.util.module_to_load in all loaders in importlib

Brett Cannon report at bugs.python.org
Sat Jun 1 05:15:34 CEST 2013


New submission from Brett Cannon:

BuiltinImporter, FrozenImporter, and ExtensionFileLoader all have their own custom code to manage clearing sys.modules if something goes wrong. Should see if any of them would break if they used importlib.util.module_to_load. And if they would break thanks to any pre-existing module in sys.modules, then add a keyword argument to suppress creating a new module.

----------
assignee: brett.cannon
components: Library (Lib)
keywords: easy
messages: 190435
nosy: brett.cannon
priority: normal
severity: normal
stage: needs patch
status: open
title: Use importlib.util.module_to_load in all loaders in importlib
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18115>
_______________________________________


More information about the Python-bugs-list mailing list