Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.1k
Closed
Description
Bug report
Bug description:
I encountered the following unexpected behavior when working with the new REPL on Windows 10'scmd just now:
Actual Behavior
>>>foriinrange(0,14,2):...print(i,end=" ")...>>>4681012
- 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
>>>foriinrange(0,14,2):...print(i,end=" ")...024681012>>>_
- 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:
>>>foriinrange(0,14,2):...print(i)...024681012
CPython versions tested on:
3.13
Operating systems tested on:
Windows
Linked PRs
- gh-128067: Add newline to new REPL output when needed to avoid chopping characters #131011
- gh-128067: Fix pyrepl overriding printed output without newlines #138732
- [3.14] gh-128067: Fix pyrepl overriding printed output without newlines (GH-138732) #143350
- [3.13] gh-128067: Fix pyrepl overriding printed output without newlines (GH-138732) #143351
- gh-128067: In test_pyrepl, discover escape sequences from terminfo instead of using hard-coded values #143356