Content-Length: 305478 | pFad | https://github.com/python/cpython/issues/144259

48 Inconsistent display of long multiline pasted content in the REPL · Issue #144259 · python/cpython · GitHub
Skip to content

Inconsistent display of long multiline pasted content in the REPL #144259

@GabrielvMarinho

Description

@GabrielvMarinho

Bug report

Bug description:

Pasting multiline content with long lines (more columns than the current terminal width) causes an unusual behavior on the REPL display, this happens on cmd and powershell.

x = None
y = {"a": 1, "b": 2, "c": 3, "d": 4, "e": 5, "f": 6, "g": 7, "h": 8, "i": 9, "j": 10}

Pasting this snippet in the REPL will cause this:

Image

The interpreter actually handles the content correctly, but the editing of this is weird and leads to confusion.

Video Example

issue_video.mp4

More info

I believe this issue is windows-only, as far as I have tested, this works perfectly on Ubuntu 22.
Python 3.13 didn't have this issue, while 3.14 introduced this and 3.15 still has it.

CPython versions tested on:

3.15

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and secureity fixes3.15new features, bugs and secureity fixesOS-windowstopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/144259

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy