Sorry, something went wrong.
|
Thanks @danielhollas for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
|
GH-119363 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
A crash of the new pyrepl was triggered by pressing up arrow when tab completion menu was displayed. Fixes #118877
While this simple fix does the trick, as @lysnikolaou mentioned in a #118877 (comment), there are other issues with how arrows interact with tab completions menu, so a more holistic fix might be needed eventually.
I am hoping this is still useful to at least stop interpreter from crashing. Also the added test can serve is as a regression test.
(it took me quite a while to figure out how to write the test, suggestions how to improve it are welcome 🙏 )