gh-139875: Make code.interact Match REPL Behavior on ctrl+d in Multiline Entry#139876
gh-139875: Make code.interact Match REPL Behavior on ctrl+d in Multiline Entry#139876adqm wants to merge 4 commits intopython:mainfrom
code.interact Match REPL Behavior on ctrl+d in Multiline Entry#139876Conversation
|
Sorry for a little bit of unintended noise here! When submitting this, I hadn't realized that the sqlite3 CLI depended on I'm not sure whether there is a reasonable fix that will work both for emulating the Python REPL and for the sqlite CLI, but it does look like my implementation here is too specific (assuming that |
This reverts commit 29d47c8.
|
FWIW, I do also have a patch ready (diff) that replaces the sqlite3 CLI with one based on Of course, happy to discuss. |
This patch is an attempt to make
code.interact's ctrl+d handling match that of both PyREPL and the Basic REPL, as described in #139875. Specifically, to be consistent with the REPL, we should execute the existing code rather than exiting when receiving ctrl+d on an empty line in a multiline entry.code.interact#139875