python / python/cpython

`pygettext` generates output even when there should be none

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

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

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

説明

Bug report

Bug description:

This occurs in two cases:

  • Output is still generated when there is no input. Whereas xgettext:
    $ xgettext
    xgettext: no input file given
    Try 'xgettext --help' for more information.
    
    And the second case follows on from this (but can also occur with input files)
  • In xgettext, no output is generated if there are no messages. In pygettext output is still generate even if no messages are found, the header is still sent.
    We should fix it to work like xgettext and not produce "empty" output.

cc @tomasr8

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs
  • gh-156322

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

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

はじめの一歩

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

調査の方向性

pygettext のコマンドラインエントリーポイントから始め、入力なしおよびメッセージなしの場合の動作を xgettext と比較します。どちらの場合も出力がないことを確認し、その後、既存の pygettext テストを確認するか、これら 2 つのシナリオのカバレッジを追加します。リンクされている PR gh-156322 は、すでに作業が進められている可能性を示しています。

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

評価

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

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

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