[issue2196] Fix hasattr's exception problems

Benjamin Peterson report at bugs.python.org
Fri Mar 7 22:31:59 CET 2008


Benjamin Peterson added the comment:

Here's a patch for that. Personally, I'm +1 on either option; I just
want it fixed. :)
I suppose the only (minor) problem with propagate things which are not
Exception is libraries where the exceptions don't extend Exception.
However, the ability to do this is being removed in Py3k, so it's not huge.

Added file: http://bugs.python.org/file9630/hasattr_fixes2.diff

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


More information about the Python-bugs-list mailing list