Update locals()
Brian Quinlan
brian at sweetapp.com
Sun Apr 28 19:05:49 EDT 2002
> locals()
> 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.
The reason that changes to the locals dictionary might not be visible is
that LOAD_FAST instructions, which are used for local variable lookup,
use an indexed list and not the locals dictionary.
Cheers,
Brian
More information about the Python-list
mailing list