creating variable in root namespace from module

MakaMaka justin.frost at gmail.com
Fri Mar 10 13:05:55 EST 2006


Steve,
I think I actually need to get the caller's local namespace.  How do I
do that using sys?  I read the documentation and can't find anything
specific.  For example, if I have module A and it imports module B, I
want module B to add variables to A's global namespace.  Python has to
store this info somewhere in order to return to A after a function is
run in B.  I can certainly look at it the Komodo debugger call stack.


Thanks,
-Justin




More information about the Python-list mailing list