Skip to content

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

Closed as duplicate

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.

Activity

  1. StanFromIreland commented on Mar 2, 2025

    @StanFromIreland
    Member

    Unable to reproduce on linux on 3.13/main branch.

    @ambv

  2. picnixz commented on Mar 2, 2025

    @picnixz
    Member

    This is a known issue (gh-128067).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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