python / python/cpython

Don't call pager with --clear-screen

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

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

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

説明

Bug report

Bug description:

This was recently introduced by https://github.com/python/cpython/pull/146382.

I believe this rather lead to a bad user experience, see https://github.com/python/cpython/pull/146382#issuecomment-4185931124. The screen will be cleared regardless on the text size, even if it's small, like small docstrings. Then you have to scroll up terminal to see recent output and so on.

IMO, it's better to follow git's defaults, which uses --quit-if-one-screen option to display small texts "inline". We could too.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs
  • gh-148322

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

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

はじめの一歩

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

調査の方向性

まず、関連付けられた PR gh-148322 と、PR 146382 で導入された変更を確認し、その後、CPython が短い docstring に対して pager を呼び出している箇所を追跡します。短いテキストは inline のままにし、長い出力ではターミナルをクリアせずに引き続き pager を使用するようになれば完了です。その作業がまだカバーされていない場合は、関連するテストを追加または更新してください。

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

評価

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

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

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