Martin Panter added the comment:

I suspect this is actually a bug with Gnu Readline. The same issue exists in 
GDB.

When a signal handler (such as SIGINT) raises an exception to abort the input, 
Python calls rl_free_line_state(). The documentation for that function, 
<https://cnswww.cns.cwru.edu/php/chet/readline/readline.html#IDX341> says 
Readline’s own SIGINT handler (which Python doesn’t normally actually use) also 
calls it to abort the current line. It lists various states that are “freed”. 
Although the search state is not in the list, it seems like it should be.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24266>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to