[Python-Dev] Chaining try statements: eltry? (original) (raw)
David Abrahams dave at boost-consulting.com
Thu Jul 7 20:57:55 CEST 2005
- Previous message: [Python-Dev] Chaining try statements: eltry?
- Next message: [Python-Dev] Chaining try statements: eltry?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tim Peters <tim.peters at gmail.com> writes:
I also suspect that if they weren't in the language already, a PEP to introduce them would fail, because
stilllooking = True some loop: if found it: stilllooking = False break if stilllooking: # 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
- Previous message: [Python-Dev] Chaining try statements: eltry?
- Next message: [Python-Dev] Chaining try statements: eltry?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]