python / python/cpython

Star expression in comprehension wrongly indicates to use or_expression after the star

未關閉
#89,809 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

3.10 3.11 3.9 (EOL) docs
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

BPO 45646
Nosy @sweeneyde, @Arthur-Milchior
PRs
  • python/cpython#29303
  • 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 = None
    closed_at = None
    created_at = <Date 2021-10-28.14:42:22.397>
    labels = ['3.11', '3.9', '3.10', 'docs']
    title = 'Star expression in comprehension wrongly indicates to use or_expression after the star'
    updated_at = <Date 2021-11-03.01:05:41.748>
    user = 'https://github.com/Arthur-Milchior'
    

    bugs.python.org fields:

    activity = <Date 2021-11-03.01:05:41.748>
    actor = 'Dennis Sweeney'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2021-10-28.14:42:22.397>
    creator = 'Arthur-Milchior'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45646
    keywords = ['patch']
    message_count = 6.0
    messages = ['405187', '405188', '405191', '405288', '405571', '405574']
    nosy_count = 3.0
    nosy_names = ['docs@python', 'Dennis Sweeney', 'Arthur-Milchior']
    pr_nums = ['29303']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue45646'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']
    

    貢獻指南

    開啟貢獻指南

    從這裡開始

    1. 先讀完整個 Issue,再讀專案的貢獻指南。
    2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
    3. Fork 儲存庫,在一個分支上完成修改。
    4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

    研究方向

    首先檢視語法文件 issue 以及連結的 pull request python/cpython#29303;payload 未指定檔案或測試。確認 comprehension 語法描述 star expression 的位置,修正對 or_expression 的誤導性參照,並驗證文件不再暗示錯誤的語法。

    由索引模型根據 Issue 內容生成。

    評估

    技術堆疊
    python
    領域
    documentation
    Issue 類型
    文件
    難度
    2/5
    預估耗時
    1-3 小時
    活躍度
    停滯
    描述清晰度
    基本清楚
    新手友好度
    20/100

    把新 issue 寄到你的電子郵件信箱

    精選適合新手參與的 GitHub issue 摘要。