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
print(..., end='') is corrupting output in Python 3.13.1 REPL (PowerShell) #130766
I'm experiencing a strange issue in Python 3.13.1 when using the print(..., end="") function inside the interactive REPL. The first item in my list gets corrupted or disappears. Run the following code:
tea_variety = ["Black", "Green", "Oolong", "White"]
for tea in tea_variety:
print(tea, end="-")
Expected output:
Black-Green-Oolong-White-
Actual output (Bug):
k-Green-Oolong-White-
Additional Observations:
The first letter of the first word seems to disappear or get corrupted.
Using "".join(tea_variety) works correctly.
Running this in a .py script works correctly.
It only happens in PowerShell’s Python REPL.
Tested on Windows 11, Python 3.13.1.
System Information:
OS: Windows 11 Python Version: 3.13.1 (64-bit) Terminal: PowerShell
Bug happens only in REPL.
Activity
StanFromIreland commentedon Mar 2, 2025
Unable to reproduce on linux on 3.13/main branch.
@ambv
picnixz commentedon Mar 2, 2025
This is a known issue (gh-128067).