pythonshellterminalread-eval-print-looppython-3.13

Python 3.13 REPL key-binding ctrl+arrows not working


Previously when I ran py3.12 in shell I could use ctrl + left arrow or ctrl + right arrow to move one word back or forward (skip words).

Recently I've upgraded to py3.13 and it doesn't work anymore, how can I bring it back?

Note: when I run py3.12 using python -V:3.12 again it works so it seems to be related to py3.13 itself not the shell


Solution

  • This is a regression in CPython caused by the addition of pyrepl in Python 3.13.

    Here's a GitHub issue I created about this problem (there's also a PR I created that is linked in there): pyrepl on Windows: add Ctrl+← and Ctrl+→ word-skipping and other keybindings