Skip to content
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

[Windows] Python 3.13 New REPL prompt swallows characters with print(..., end=" ") #128067

Open
cessor opened this issue Dec 18, 2024 · 0 comments
Labels
topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error

Comments

@cessor
Copy link

cessor commented Dec 18, 2024

Bug report

Bug description:

I encountered the following unexpected behavior when working with the new REPL on Windows 10's cmd just now:

Actual Behavior

>>> for i in range(0, 14, 2):
...     print(i, end=" ")
...
>>> 4 6 8 10 12
  • When I use print and pass an argument to the end-parameter, the resulting line is missing 4 characters.
  • The four chars of the REPL prompt >>> appear to write over the line, as the cursor blinks on the first visible position (indicator sits under the number 4)
  • Typing overwrites the shown chars.

Expected Behavior

>>> for i in range(0, 14, 2):
...     print(i, end=" ")
...
0 2 4 6 8 10 12 >>> _
  • REPL on Python 3.12 works as expected.
  • Results are printed in one line, prompt appears at the end, cursor follows at end of line.

Note:

This works as expected:

>>> for i in range(0, 14, 2):
...     print(i)
...
0
2
4
6
8
10
12

CPython versions tested on:

3.13

Operating systems tested on:

Windows

@cessor cessor added the type-bug An unexpected behavior, bug, or error label Dec 18, 2024
@ZeroIntensity ZeroIntensity added the topic-repl Related to the interactive shell label Dec 18, 2024
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

2 participants