You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python 3.13 and 3.14 REPL on Windows Terminal is chopping off the first four characters printed if end parameter is used in print function #128809
If I use the end parameter in print function, the first four characters (including whitespaces) of the output are chopped off. I have tried using other Python versions (3.10 - 3.12) and everything works well. It is somewhat strange that this happens only on Python 3.13 REPL in Windows Terminal or Command Prompt. Consider the MRE below:
foriinrange(10):
print(i, end='')
prints: 456789. Numbers 0, 1, 2, and 3 are missing.
Also
print('first', end='|')
prints t| instead of first|. Characters 'f', 'i', 'r', 's' are missing.
My specific version is Python 3.13.0. I'd like to know if this is happening because I'm on a Windows machine or is it an issue with Python 3.13.0? Thanks.
changed the title [-]Python 3.13 REPL on Windows Terminal is chopping off the first four characters printed if `end` parameter is used in `print` function[/-][+]Python 3.13 and 3.14 REPL on Windows Terminal is chopping off the first four characters printed if `end` parameter is used in `print` function[/+]on Oct 11, 2025
Activity
picnixz commentedon Jan 14, 2025
Can you test with the latest Python 3.13 release? we're currently at 3.13.1. I cannot reproduce this on Linux and on 3.14.
eendebakpt commentedon Jan 14, 2025
I can confirm this issue on latest main (Windows). It might be the first three characters are printed, but then overwritten by the prompt
>>>picnixz commentedon Jan 14, 2025
cc @pablogsal
pablogsal commentedon Jan 14, 2025
Unfortunately I don't have a windows machine at the moment 😕. @DinoV @zooba @ambv can you take a look if you have some free cycles?
rruuaanng commentedon Jan 15, 2025
The strange thing is that it seems to be related to outputting

end.devdanzin commentedon Mar 9, 2025
I believe this is a duplicate of #128067. I'm submitting a PR for these issues soon.
picnixz commentedon Mar 9, 2025
Yes it's a duplicate
uche-wealth commentedon Oct 11, 2025
I just got Python 3.14 and this issue is still there on Windows. Any plans to fix this?
[-]Python 3.13 REPL on Windows Terminal is chopping off the first four characters printed if `end` parameter is used in `print` function[/-][+]Python 3.13 and 3.14 REPL on Windows Terminal is chopping off the first four characters printed if `end` parameter is used in `print` function[/+]