[New-bugs-announce] [issue10011] `except` doesn't use `isinstance`

Ram Rachum report at bugs.python.org
Sat Oct 2 00:51:10 CEST 2010

New submission from Ram Rachum <cool-rr at cool-rr.com>:

Is there a reason why `execpt` compares base classes instead of using `isinstance`? This prevents using `__instancecheck__` to override the instance check.

components: Interpreter Core
messages: 117844
nosy: cool-RR
priority: normal
severity: normal
status: open
title: `except` doesn't use `isinstance`
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list