
Dec. 29, 2013
10:21 p.m.
On Dec 29, 2013, at 1:41, spir <denis.spir@gmail.com> wrote:
"except try" looks horrible, but I can't think of anything better.
I would buy (if cheap!):
try: stuff else try: other stuff else try: different stuff except Exception as e: deal with it
The advantage of "except try" is that it leaves the door open for specifying only certain exceptions instead of all, which would be useful in some cases. But the advantage of "else try" is that it closes that door, eliminating most of the other questions I and others raised. It's clearly pure syntactic sugar with no ambiguity. Maybe that's a better idea.