[New-bugs-announce] [issue2196] Fix hasattr's exception problems

Benjamin Peterson report at bugs.python.org
Tue Feb 26 23:51:55 CET 2008

New submission from Benjamin Peterson:

hasattr currently returns False when any exception happens in getattr. I
see that this tracker I previous patches trying to fix this issue, but
they were rejected because they only tried to catch attribute errors. My
patch only propagates SystemExit and KeyboardInterrupt exceptions.

components: Interpreter Core, Tests
files: hasattr_fixes.diff
keywords: patch
messages: 63055
nosy: benjamin.peterson
severity: normal
status: open
title: Fix hasattr's exception problems
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file9563/hasattr_fixes.diff

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list