On Apr 26, 2011, at 5:07 AM, Ross Peoples wrote: > I turn everything into modules, so I use local_import() ALOT. If I have a > local import that looks like this: > > DEBUG = True > my_module = local_import('my_module', reload=DEBUG) > > How would I write that with the new importer?
You can of course continue to use local_import. But local_import is just using __import__ followed by reload. So in the new scheme, I think you'd use import, then reload.