python / python/cpython

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

オープン
#125,685 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

3.13 3.14 3.15 stdlib topic-repl type-bug
主要言語
Python
スター
77.2k
フォーク
36k
PR マージ指標
PR 指標を取得中

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、Windows 上の Python 3.13 対話型 REPL で動作を再現します。対話型ヘルプに入り、F3 を押して、複数行を貼り付けます。interactive-help と paste-mode の処理を追跡します。完了の条件は、各モードが誤解を招くプロンプトや使用できない複数行入力を生成しなくなることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。