[Python-Dev] anonymous blocks
Skip Montanaro
skip at pobox.com
Fri Apr 22 05:16:55 CEST 2005
Guido> or perhaps even (making "for VAR" optional in the for-loop syntax)
Guido> with
Guido> in synchronized(the_lock):
Guido> BODY
This could be a new statement, so the problematic issue of implicit
try/finally in every for statement wouldn't be necessary. That complication
would only be needed for the above form.
(Of course, if you've dispensed with this I am very likely missing something
fundamental.)
Skip
More information about the Python-Dev
mailing list