On 12 Mag, 10:01, alex23 <[EMAIL PROTECTED]> wrote:
> On May 12, 5:17 pm, pistacchio <[EMAIL PROTECTED]> wrote:
>
> > hi to all!
> > can i load a module passing to it, automatically and as default, all
> > the caller's global variables to act as module's global variables?
> > thanks
>
> module = __import__('module', globals=globals())
>
> I think that's what you're looking for.
>
> - alex23


hmm, well, maybe yes.. should i ovveride the standard import function
of the module?
say that the module is called "pycatrix", would adding this to the
module solve the problem?

def __import__('pycatrix', globals=globals()):

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to