glomde wrote: > I didnt mean that __import__ isnt a function, but that I want to > make a function called ImoprtFile that actually does something > very similar that what __import__. > > So to rephrsase the questin how does __import__ load a module > into the callers namespace.
Ok got it now. I'm sure it's doable but it sounds tricky. Wouldn't it be easier to just have your function return a list of modules to the caller and have the caller import them? -- Edward Elliott UC Berkeley School of Law (Boalt Hall) complangpython at eddeye dot net -- http://mail.python.org/mailman/listinfo/python-list