exec "statement" VS. exec "statement" in globals(), locals()
Erik Max Francis
max at alcyone.com
Wed Jul 21 16:21:11 EDT 2004
James Henderson wrote:
> Update and return a dictionary representing the current local symbol
> table. Warning: The contents of this dictionary should not be
> modified;
> changes may not affect the values of local variables used by the
> interpreter.
It doesn't matter whether you use the value directly from locals() or
assign it to a secondary variable, it's still read-only.
--
__ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ History is a bucket of ashes.
-- Carl Sandburg
More information about the Python-list
mailing list