python / python/cpython

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

Open
#125,685 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.13 3.14 3.15 stdlib topic-repl type-bug
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in the Python 3.13 interactive REPL on Windows: enter interactive help, press F3, and paste multiple lines. Trace the interactive-help and paste-mode handling; done means the modes no longer produce a misleading prompt or unusable multiline input.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.