##// END OF EJS Templates
inputhook_qt4: handle KeyboardInterrupt in a way compatible with 'readline'....
inputhook_qt4: handle KeyboardInterrupt in a way compatible with 'readline'. While the previous code works fine on Windows, on Linux with 'readline' the situation is different: once we disable the Qt4 event loop, we go back waiting in the select() inside readline.c's readline_until_enter_or_signal() function. When that select() is interrupted, the PyOS_InputHook is executed if present and the pending KeyboardInterrupt is delivered as soon as bytecode execution starts, even before entering the `try:` clause! As at that point we're in a ctypes callback, this will lead to an internal error. The only solution is therefore to disable the PyOS_InputHook temporarily.
Christian Boos -
r4922:fa663483
Show More
Name Size Modified Last Commit Author
/ IPython / core
tests
__init__.py Loading ...
alias.py Loading ...
application.py Loading ...
autocall.py Loading ...
builtin_trap.py Loading ...
compilerop.py Loading ...
completer.py Loading ...
completerlib.py Loading ...
crashhandler.py Loading ...
debugger.py Loading ...
display.py Loading ...
display_trap.py Loading ...
displayhook.py Loading ...
displaypub.py Loading ...
error.py Loading ...
excolors.py Loading ...
extensions.py Loading ...
fakemodule.py Loading ...
formatters.py Loading ...
history.py Loading ...
hooks.py Loading ...
inputsplitter.py Loading ...
interactiveshell.py Loading ...
ipapi.py Loading ...
logger.py Loading ...
macro.py Loading ...
magic.py Loading ...
magic_arguments.py Loading ...
oinspect.py Loading ...
page.py Loading ...
payload.py Loading ...
payloadpage.py Loading ...
plugin.py Loading ...
prefilter.py Loading ...
profileapp.py Loading ...
profiledir.py Loading ...
prompts.py Loading ...
release.py Loading ...
shadowns.py Loading ...
shellapp.py Loading ...
splitinput.py Loading ...
ultratb.py Loading ...
usage.py Loading ...