On 19 October 2013 20:47, Glenn Linderman <v+pyt...@g.nevcal.com> wrote: > Thanks again for sharing the big picture: you have before, but I see you've > evolved it slightly. Delayed error handling I've had occasion to do, but > not yet in Python. The constrained jump pattern is interesting, but the > example is not complex enough to justify the syntax: the with solution is > actually longer... if you initialized result they'd be the same length. The > problem with the for/else construct is that the "not found" case falls > through to the "found" case, which can be awkward, but that awkwardness > isn't really demonstrated in the example. "exit_label" is an awkward name, > too, since there are no labels, and no exit(). (yes, I know you meant exit > the loop; naming is hard.)
You exit with statements - that's why the final method is called __exit__. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com