[Python-ideas] Consistent programming error handling idiom

Chris Barker chris.barker at noaa.gov
Fri Apr 8 16:47:34 EDT 2016


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....

-CHB


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160408/c4f7242a/attachment.html>


More information about the Python-ideas mailing list