msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary

未关闭
#53,950 6 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@merwok 已经在做这个了。

开始于 2011年6月15日。

评估

这个 Issue 还没有评估数据。

描述

triaged type-bug
BPO 9741
Nosy @loewis, @akuchling, @ezio-melotti, @merwok
PRs
  • python/cpython#10875
  • Files
  • msgfmt-clear.diff: 2 line patch to clear dictionary at start of msgfmt.make()
  • test_msgfmt.py: Test program to check behaviour before and after applying the patch
  • test1.po: 1st of 2 .po files used by test program
  • test2.po: 2nd of 2 .po files used by test program
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/merwok'
    closed_at = None
    created_at = <Date 2010-09-02.14:31:41.028>
    labels = ['type-bug']
    title = 'msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary'
    updated_at = <Date 2018-12-03.19:33:03.946>
    user = 'https://bugs.python.org/timothytylee'
    

    bugs.python.org fields:

    activity = <Date 2018-12-03.19:33:03.946>
    actor = 's-ball'
    assignee = 'eric.araujo'
    closed = False
    closed_date = None
    closer = None
    components = ['Demos and Tools']
    creation = <Date 2010-09-02.14:31:41.028>
    creator = 'timothy.ty.lee'
    dependencies = []
    files = ['18710', '22368', '22369', '22370']
    hgrepos = []
    issue_num = 9741
    keywords = ['patch', 'needs review']
    message_count = 5.0
    messages = ['115378', '138336', '138372', '195472', '240901']
    nosy_count = 5.0
    nosy_names = ['loewis', 'akuchling', 'ezio.melotti', 'eric.araujo', 'timothy.ty.lee']
    pr_nums = ['10875']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue9741'
    versions = ['Python 2.7', 'Python 3.3', 'Python 3.4']
    

    Linked PRs
    • gh-133316
    主要语言
    Python
    星标
    77.2k
    派生
    36k
    平均合并
    1 天 9 小时
    30 天内合并 PR
    558

    贡献指南

    打开贡献指南

    从这里开始

    1. 先读完整个 Issue,再读项目的贡献指南。
    2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
    3. Fork 仓库,在一个分支上完成修改。
    4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

    python/cpython 的其他 Issue

    查看 python/cpython 的全部 Issue

    相似的 Issue

    更多 Python Issue

    把新 issue 发到你的邮箱

    精选适合新手参与的 GitHub issue 摘要。