Skip to content

REPL adds syntax highlighting to echoed stdin being read in via input #141998

@TotalyEnglizLitrate

Description

@TotalyEnglizLitrate

Bug report

Bug description:

When obtaining input using the input function, syntax highlighting is being applied on the echoed stdin.
Notably this does not occur when reading input via sys.stdin.read.

tested on nix and uv builds of python3.14 - though I doubt it has any effect with regard to this issue

Image

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-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