Why can't I "from module import *" except at module level?

Giovanni Bajo noway at sorry.com
Fri Jan 13 20:20:11 EST 2006


Mudcat wrote:

> Is there any way to do this or am must I load all modules by function
> name only if it's after initialization?

Not sure. globals().update(mod.__dict__) might do the trick. Or just design a
better system and be done with it.
-- 
Giovanni Bajo





More information about the Python-list mailing list