trying to modify locals() dictionary
lists at cheimes.de
Mon Jan 12 20:08:38 CET 2009
> Hi everybody,
> I try to modify locals() as an exercise.
> According to the context (function or __main__), it works differently (see
> below). Why? Thanks
The contents of this dictionary should not be modified; changes may not
affect the values of local variables used by the interpreter.
More information about the Python-list