This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Joe.Borg
Recipients Joe.Borg
Date 2013-02-28.16:53:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362070400.21.0.731470144624.issue17321@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-02-28 16:53:20Joe.Borgsetrecipients: + Joe.Borg
2013-02-28 16:53:20Joe.Borgsetmessageid: <1362070400.21.0.731470144624.issue17321@psf.upfronthosting.co.za>
2013-02-28 16:53:20Joe.Borglinkissue17321 messages
2013-02-28 16:53:20Joe.Borgcreate