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 <rep...@bugs.python.org> <http://bugs.python.org/issue17321> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com