7 Jul
2005
7 Jul
'05
6:57 p.m.
Tim Peters
I also suspect that if they weren't in the language already, a PEP to introduce them would fail, because
still_looking = True some loop: if found it: still_looking = False break if still_looking: # what would have been in the "else" clause
is clear and easy to write without it.
Oh, that's wierd. I didn't know there were "else" clauses for loops, but I would've expected the other semantics. That is, either the loop terminates normally, "else:" whatever. -- Dave Abrahams Boost Consulting www.boost-consulting.com