Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pygettext: help output for keywords prints the whole keyword dictionary #129911

Closed
Assignees
tomasr8
Labels
triagedThe issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or error
@tomasr8

Description

@tomasr8

Bug report

Bug description:

The--keyword entry when printing the help via./python Tools/i18n/pygettext.py --help shows the whole keyword dictionary:

    -k word                                                                                                                                                       --keyword=word                                                                                                                                                    Keywords to look for in addition to the default set, which are:                                                                                               {'_': {0: 'msgid'}, 'gettext': {0: 'msgid'}, 'ngettext': {0: 'msgid', 1: 'msgid_plural'}, 'pgettext': {0: 'msgctxt', 1: 'msgid'}, 'npgettext': {0: 'msgctxt', 1: 'msgid', 2: 'msgid_plural'}, 'dgettext': {1: 'msgid'}, 'dngettext': {1: 'msgid', 2: 'msgid_plural'}, 'dpgettext': {1: 'msgctxt', 2: 'msgid'}, 'dnpgettext': {1: 'msgctxt', 2: 'msgid', 3: 'msgid_plural'}}                                                                                                                                                                                                                                                                             You can have multiple -k flags on the command line.

This is because the format ofDEFAULTKEYWORDS recently changed from a list to a dictionary.
We should just list the function names as we did before.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

Labels

triagedThe issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or error

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp