##// 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 / quarantine
tests
InterpreterExec.py Loading ...
__init__.py Loading ...
clearcmd.py Loading ...
envpersist.py Loading ...
ext_rescapture.py Loading ...
ipy_app_completers.py Loading ...
ipy_completers.py Loading ...
ipy_editors.py Loading ...
ipy_exportdb.py Loading ...
ipy_extutil.py Loading ...
ipy_fsops.py Loading ...
ipy_gnuglobal.py Loading ...
ipy_jot.py Loading ...
ipy_lookfor.py Loading ...
ipy_profile_doctest.py Loading ...
ipy_pydb.py Loading ...
ipy_rehashdir.py Loading ...
ipy_render.py Loading ...
ipy_server.py Loading ...
ipy_signals.py Loading ...
ipy_synchronize_with.py Loading ...
ipy_system_conf.py Loading ...
ipy_which.py Loading ...
ipy_winpdb.py Loading ...
ipy_workdir.py Loading ...
jobctrl.py Loading ...
ledit.py Loading ...
pspersistence.py Loading ...
win32clip.py Loading ...