python -i (interactive environment)

Steven Bethard steven.bethard at gmail.com
Tue Mar 8 12:16:02 EST 2005


Joe wrote:
> Thanks, I knew about that but my question is why is it not working 
> consistently?

At the module level, locals() is globals():

py> locals() is globals()
True

And the globals() dict is modifiable.

HTH,

STeVe



More information about the Python-list mailing list