dynamic modules

Grover christiancoder at gmail.com
Fri Feb 4 23:21:07 EST 2005


What is the best way to add a modules loaded with __import__() to the
global namespace? Example:

  foo = __import__( 'foo', globals(), locals(), ['*'] )
  
PS: what exactly are the parameters globals and locals used for?




More information about the Python-list mailing list