[New-bugs-announce] [issue17321] Better way to pass objects between imp.find_module() and imp.load_module()
Joe Borg
report at bugs.python.org
Thu Feb 28 17:53:20 CET 2013
New submission from Joe Borg:
If I want to use imp to find some load modules, I have to do it in quite an "unpythonic" way:
>>> name = "os"
>>> file, pathname, description = imp.find_module(name)
>>> imp.load_module(name, file, pathname, description)
Can there not be a better way to pass the tuple (or other object) between find_module() and load_module()?
I'm happy to patch this myself and submit, if it's not already been thought about.
----------
messages: 183220
nosy: Joe.Borg
priority: normal
severity: normal
status: open
title: Better way to pass objects between imp.find_module() and imp.load_module()
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17321>
_______________________________________
More information about the New-bugs-announce
mailing list