changing local dictionnary for functions

Boris Boutillier boris at cantal.lip6.fr
Mon Apr 8 12:15:31 EDT 2002


Is there a way to pass a local dictionnary to a function as it is
possible to do with a file with the execfile statement ?

In the python reference manual, in the section 4.1 : Code
Blocks,execution frames and namespace, there is a table that say that
function body uses globals namespace of the containing block and a new
locals namespace. And there is a note that say global and local can be
overrident, how is it possible ? I think it would be the answer to my
first question.

Boris



More information about the Python-list mailing list