[issue2196] Fix hasattr's exception problems

Paul Pogonyshev report at bugs.python.org
Fri Mar 7 12:10:14 CET 2008


Paul Pogonyshev added the comment:

I think it would be better not to hardcode specific 2 exceptional cases
and indeed follow that second way of instanceof(..., Exception).  I
think it was introduced exactly to separate "things that can be caught
by default" from "things that may be caught only in very special cases".
 I don't find it good Python interpreter not following its own rules.

----------
nosy: +_doublep

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2196>
__________________________________


More information about the Python-bugs-list mailing list