Message183220
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. |
|
Date |
User |
Action |
Args |
2013-02-28 16:53:20 | Joe.Borg | set | recipients:
+ Joe.Borg |
2013-02-28 16:53:20 | Joe.Borg | set | messageid: <1362070400.21.0.731470144624.issue17321@psf.upfronthosting.co.za> |
2013-02-28 16:53:20 | Joe.Borg | link | issue17321 messages |
2013-02-28 16:53:20 | Joe.Borg | create | |
|