[New-bugs-announce] [issue17321] Better way to pass objects between imp.find_module() and imp.load_module()
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.
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>
More information about the New-bugs-announce