[New-bugs-announce] [issue12643] code.InteractiveConsole ignores sys.excepthook

aliles report at bugs.python.org
Wed Jul 27 14:10:07 CEST 2011

New submission from aliles <aaron.iles at gmail.com>:

code.InteractiveConsole doesn't match the CPython interactive interpreter with respect to allowing sys.excepthook to handle exceptions. Unlike the interactive interpreter, replacing sys.excepthook with an alternate function will not change exception handling behaviour from inside a code.InteractiveConole

This affects downstream interpreters such as PyPy.

components: Library (Lib)
files: console.py
messages: 141222
nosy: aliles
priority: normal
severity: normal
status: open
title: code.InteractiveConsole ignores sys.excepthook
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file22771/console.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list