Re: Simple question regarding module initialization

2006-06-20 Thread Terry Hancock
> On 6/20/06, Patrick M. Nielsen <[EMAIL PROTECTED]> wrote: > > for module in modules: print "Loading %s..." % module exec 'import > > %s' % module > > > > Although I like the outcome of writing it like this, I don't feel > > good about it. Is this against standard Python conventions or > > morals

Re: Simple question regarding module initialization

2006-06-20 Thread Troy Melhase
$ ipython in [1]: __import__? Type: builtin_function_or_method Base Class: String Form: Namespace: Python builtin Docstring: __import__(name, globals, locals, fromlist) -> module Import a module. The globals are only used to determine the context; they are not