Suggestion for (re)try statement

Brigham Brown TuAmigoFiel at gmail.com
Wed Nov 2 17:02:01 EST 2005


It doesn't seem like a very useful construct, because you won't know at
what point the code failed in the try block, so it could execute code
at the beginning of the block several times if the error was in the
middle. That could be weird.

So, it would probably only be useful for one line try blocks.

I wonder if you would have thought of the keyword was something other
than try. For example, if it was errorcatchingblock, would you have
thought of this new construct?




More information about the Python-list mailing list