[Python-ideas] Use `isinstance` check during exception handling

Michael Selik mike at selik.org
Thu Nov 5 03:18:12 EST 2015


I think with good reason. It's impossible to enumerate all possible ways a
program can error. Eventually one must fall back to inspecting various
error payload information and perhaps even other state. Increasing error
granularity is a slippery slope. The shift should be driven by evidence of
annoying boilerplate code written in the standard library and major
community projects.

On Thu, Nov 5, 2015 at 3:13 AM Sjoerd Job Postmus <sjoerdjob at sjec.nl> wrote:

> Definitely not! PEP3151 was just meant as an example of an improvement of
> exception granularity taking a long time.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20151105/b96728fe/attachment-0001.html>


More information about the Python-ideas mailing list