namespace question

Phil Frost indigo at bitglue.com
Thu Sep 2 16:53:38 CEST 2004


I'm not sure I understand what you are asking, but maybe globals() is
what you want?

On Thu, Sep 02, 2004 at 01:52:46PM +0000, Elaine Jackson wrote:
> I would like to be able to write a function f, which will live in a module M,
> and will call a function g, such that, when f is imported from M into the
> interpreter, and invoked there, its invokation of g will return the
> interpreter's global namespace. Is there a way to do this and, if so, how?
> Muchas gracias for any and all assistance.
> 
> Peace



More information about the Python-list mailing list