python -i (interactive environment)

Joe JoeSalmeri at hotmail.com
Tue Mar 8 12:37:43 EST 2005


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

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