[Python-ideas] Consistent programming error handling idiom

Rian Hunter rian at thelig.ht
Fri Apr 8 16:50:14 EDT 2016

> On Apr 8, 2016, at 1:47 PM, Chris Barker <chris.barker at noaa.gov> wrote:
>> On Fri, Apr 8, 2016 at 12:47 PM, Rian Hunter <rian at thelig.ht> wrote:
>> > On Apr 8, 2016, at 12:02 PM, Chris Barker <chris.barker at noaa.gov> wrote:
>> > I agree with Chris A's point:
>> >
>> > Any unhandled Exception is a bug. Simple as that.
>> I'm happy with that interpretation. If that was codified in a style document accessible to newbies I think that would help achieve a more consistent approach to exceptions.
> it already is in advice all over the place: "don't use bare except"
> Doesn't mean folks don't do it anyway....

I think bare except is different from "except Exception" which is common and not discouraged. "except Exception" still masks programming errors.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160408/c957a900/attachment-0001.html>

More information about the Python-ideas mailing list