Skip to content

Python 3.13 REPL have issues when typing/deleting single line, that goes wrapped on multiple lines #126614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
XCanG opened this issue Nov 9, 2024 · 6 comments
Labels
topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error

Comments

@XCanG
Copy link

XCanG commented Nov 9, 2024

Bug report

Bug description:

When I tested some things in REPL that running in Windows Terminal on Windows 10 I find out that it have issues when I type or delete characters in first line that's being wrapped on 2nd line.

A better showcase will be this video:

2024-11-09_09-43-50_Python3.13_lq.mp4

Here you can see some line that I'm working with, at some point I was needed to go back and delete characters in first line, here I deleted 3 characters: int with backspace, but what it did is delete whole words and print line with overlapping on existing one, making it unreadable mess. But the actual code is safe, only visual bug showing it wrong.

Then for showcase I added int back and it did in the same way with an error.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

@XCanG XCanG added the type-bug An unexpected behavior, bug, or error label Nov 9, 2024
@XCanG XCanG changed the title Python 3.13 REPL have issues when typing/deleting single line, that goes on multiple lines Python 3.13 REPL have issues when typing/deleting single line, that goes wrapped on multiple lines Nov 9, 2024
@XCanG
Copy link
Author

XCanG commented Nov 9, 2024

Also if needed, sys.version prints: 3.13.0 (tags/v3.13.0:60403a5, Oct 7 2024, 09:38:07) [MSC v.1941 64 bit (AMD64)]

@skirpichev skirpichev added the topic-repl Related to the interactive shell label Nov 9, 2024
@rruuaanng
Copy link
Contributor

Can you give a minimum trigger? It seems that the video is a bit too cluttered.

@XCanG
Copy link
Author

XCanG commented Nov 10, 2024

I write some code that goes on 2nd line, then I edit it (Arrow up on keyboard), during editing I either delete with Backspace or type characters and you can see when I press buttons it jump cursor. That's all. I guess code itself doesn't matter.

@XCanG
Copy link
Author

XCanG commented Nov 10, 2024

2024-11-10_17-37-14_Python3.13.mp4

Yeh, code doesn't matter. You can see here I type and delete 0. Also find another bug with Arrow Up/Down when editing (part at the end)

And just for confirmation I checked REPL as standalone application (not runned within Windows Terminal) - the result is bugged as well.

@XCanG
Copy link
Author

XCanG commented Nov 10, 2024

2024-11-10_17-49-36_NVIDIA_Overlay.mp4

And another, more simpler, case. Here I just hold 1 button until it wrap on 2nd line. I send that result. Then I press Arrow Up and go the the 2nd character position, Then I simply hold 0 for a long time, but the output shows with visual glitches. And when I send that and press Arrow Up again it also print that number incorrectly and seems that it paste extra newlines and extra >>> characters.

@jlallas384
Copy link
Contributor

I tried it on Linux, and it is also kind of broken, though not as bad as it is on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants