[issue17321] Better way to pass objects between imp.find_module() and imp.load_module()

Brett Cannon report at bugs.python.org
Thu Feb 28 18:58:14 CET 2013


Brett Cannon added the comment:

Both imp.find_module() and load_module() have been documented as deprecated since Python 3.3. I have not added the warning as I have to work through the stdlib first to remove all current uses.

But for what you are after, Joe, just use importlib.import_module() (which is available in Python 2.7 in the stdlib and earlier on PyPI).

----------
resolution:  -> wont fix
status: open -> closed

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


More information about the Python-bugs-list mailing list