Skip to content

print(..., end='') is corrupting output in Python 3.13.1 REPL (PowerShell) #130766

@Akshi-Devi

Description

@Akshi-Devi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions