[Python-ideas] Fwd: Block-Scoped Exception Handlers

INADA Naoki songofacandy at gmail.com
Fri May 6 21:12:51 EDT 2016


On Sat, May 7, 2016 at 9:58 AM, Kyle Lahnakoski <klahnakoski at mozilla.com>
wrote:

>
> On 5/6/2016 7:57 PM, INADA Naoki wrote:
>
> If many functions have catch clause, it's a very bad code smell.
>
>
> This is interesting, and the ?fourth? time it was alluded to!  Maybe the
> lack of `try` statements is common, and people can still debug problems
> despite the loss of causes and stack traces.
>

No.  Catching at near top level doesn't loss cause and stack trace.
Badly wrapped exception does loss important information.

It is same to multi threaded program.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160507/51d45cc8/attachment.html>


More information about the Python-ideas mailing list