<div dir="ltr">I also only see trouble with this construct.<div><br></div><div>I initially assumed you meant:</div><div><br></div><div> while expr try:</div><div> # ...</div><div> except IOError:</div><div> print 'error'</div>
<div><br></div><div>would actually equal:</div><div><br></div><div> try:</div><div> while expr:</div><div> # ...</div><div> except IOError:</div><div> print 'error'</div><div><br></div>
<div>This makes sense because the "except" is after the while loop suite so it should mean that being in the except suite removes the possibility of reentering the while suite.</div><div><br></div><div>Anyhow, because of the ambiguity, and because we'll immediately need for/try if/try and try comprehensions (some of which have contradicting "else" semantics) I'm -2 on this.</div>
<div><br></div><div>Yuval Greenfield</div></div>