Skip to content

Paste mode in python 3.13 turns on in interactive help mode but doesn't work #125685

Open
@evle-zzz

Description

@evle-zzz

Bug report

Bug description:

Run python repl.
Enter "help" to start interactive help.
Prompt changes to "help>"
Press "F3" to enter paste mode. Prompt changes to "(paste)".
Paste something with multiple lines.
All the line ends get removed and an unusable line remains.

The issue is:

  1. Why paste mode works within interactive help at all?
  2. "(paste)" propmpt hides the fact that we are still within interactive help.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15new features, bugs and security fixesstdlibPython modules in the Lib dirtopic-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