Question about name scope

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu Feb 2 01:34:56 CET 2012


On Wed, 01 Feb 2012 14:53:09 -0800, Ethan Furman wrote:

> Indeed -- the point to keep in mind is that locals() can become out of
> sync with the functions actual variables.  Definitely falls in the camp
> of "if you don't know *exactly* what you are doing, do not play this
> way!"

And if you *do* know exactly what you are doing, you will probably decide 
not to play this way also!


-- 
Steven



More information about the Python-list mailing list