python -i (interactive environment)

Joe JoeSalmeri at
Tue Mar 8 18:37:43 CET 2005

Thanks I thought that was also true for globals() but I now see that it is 

"Steven Bethard" <steven.bethard at> wrote in message 
news:VdWdnTrjLppPQLDfRVn-oA at
> 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