peter at engcorp.com
Thu Sep 2 17:10:33 CEST 2004
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.
What does that last part mean? There is no such thing as the
"interpreter's global namespace". Each module is its own namespace.
More information about the Python-list