Update locals()

Brian Quinlan brian at sweetapp.com
Mon Apr 29 02:45:46 EDT 2002


> Right -- and having such change attempts be diagnosed at once (by
> making locals() a pseudo-dict that raises on set attempts) would help
> debugging.  

It would be best if the pseudo-dict would only raise an exception if the
variable cannot be set. Debuggers and other tools might want to at least
make the attempt.

> Similar optimizations to globals() are under consideration
> (there are three PEPs out about that, I believe).

And Ping's beautiful diagrams :-)

Cheers,
Brian






More information about the Python-list mailing list