python / python/cpython

Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)

未關閉
#81,993 36 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

3.9 (EOL) interpreter-core type-feature
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

BPO 37812
Nosy @tim-one, @rhettinger, @mdickinson, @vstinner, @animalize, @gnprice, @sir-sigurd, @aeros
PRs
  • python/cpython#15203
  • python/cpython#15216
  • python/cpython#15448
  • 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 2019-08-10.21:07:30.736>
    labels = ['interpreter-core', 'type-feature', '3.9']
    title = 'Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)'
    updated_at = <Date 2019-09-22.06:41:33.865>
    user = 'https://github.com/gnprice'
    

    bugs.python.org fields:

    activity = <Date 2019-09-22.06:41:33.865>
    actor = 'aeros'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2019-08-10.21:07:30.736>
    creator = 'Greg Price'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37812
    keywords = ['patch']
    message_count = 36.0
    messages = ['349359', '349360', '349376', '349377', '349379', '349414', '349418', '349420', '349425', '349429', '349430', '350352', '350353', '350378', '350380', '350398', '350402', '352670', '352685', '352688', '352689', '352690', '352691', '352693', '352694', '352695', '352709', '352781', '352833', '352834', '352836', '352837', '352838', '352842', '352904', '352963']
    nosy_count = 8.0
    nosy_names = ['tim.peters', 'rhettinger', 'mark.dickinson', 'vstinner', 'malin', 'Greg Price', 'sir-sigurd', 'aeros']
    pr_nums = ['15203', '15216', '15448']
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue37812'
    versions = ['Python 3.9']
    

    貢獻指南

    開啟貢獻指南

    從這裡開始

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

    研究方向

    從 longobject.c 中的 CHECK_SMALL_INT 巨集開始,在進行變更之前檢視與 issue 關聯的 PR 15203、15216 和 15448。確認哪些隱式回傳仍在範圍內,然後執行相關的 CPython 直譯器測試,並驗證回傳已明確指定且行為未發生變更。

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

    評估

    技術堆疊
    c
    領域
    compilers
    Issue 類型
    重構
    難度
    3/5
    預估耗時
    1-2 天
    活躍度
    停滯
    描述清晰度
    基本清楚
    新手友好度
    25/100

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

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