dynamic modules

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Grover

    #1

    dynamic modules

    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?

Working...