[Python-ideas] Tweaking closures and lexical scoping to include the function being defined

Yuval Greenfield ubershmekel at gmail.com
Mon Sep 26 17:46:59 CEST 2011

I just want to chime in with how static variables can be bad for multi
threaded code, yet they aren't considered as bad as global variables. E.g.
the find_path guido example will explode if called by 2 threads in tandem. I
believe this is more apparent and frowned upon when caused by global

Hasn't python given enough temptations to avoid multithreading already?

Allowing these fast, local, persistent static variables is like allowing
braces instead of whitespace - the good coders will manage either way but
the bad will do bad things with it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110926/897b1d00/attachment.html>

More information about the Python-ideas mailing list