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

Giovanni Bajo noway at sorry.com
Sat Jan 14 02:20:11 CET 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