python / python/cpython

Avoid raising OverflowError if possible

未關閉
#74,019 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

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

描述

BPO 29833
Nosy @gvanrossum, @rhettinger, @mdickinson, @vstinner, @serhiy-storchaka, @orenmn
Dependencies
  • bpo-28876: bool of large range raises OverflowError
  • bpo-29816: Get rid of C limitation for shift count in right shift
  • bpo-29819: Avoid raising OverflowError in truncate() if possible
  • bpo-29834: Raise ValueError rather of OverflowError in PyLong_AsUnsignedLong()
  • bpo-29839: Avoid raising OverflowError in len() when len() returns negative large value
  • bpo-32582: chr raises OverflowError
  • 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 2017-03-17.08:31:01.766>
    labels = ['interpreter-core', 'type-feature', '3.7']
    title = 'Avoid raising OverflowError if possible'
    updated_at = <Date 2018-01-20.19:11:20.564>
    user = 'https://github.com/serhiy-storchaka'
    

    bugs.python.org fields:

    activity = <Date 2018-01-20.19:11:20.564>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2017-03-17.08:31:01.766>
    creator = 'serhiy.storchaka'
    dependencies = ['28876', '29816', '29819', '29834', '29839', '32582']
    files = []
    hgrepos = []
    issue_num = 29833
    keywords = []
    message_count = 5.0
    messages = ['289747', '289795', '289821', '289826', '289835']
    nosy_count = 6.0
    nosy_names = ['gvanrossum', 'rhettinger', 'mark.dickinson', 'vstinner', 'serhiy.storchaka', 'Oren Milman']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue29833'
    versions = ['Python 3.7']
    

    貢獻指南

    開啟貢獻指南

    從這裡開始

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

    研究方向

    首先檢視已連結的相依 issue,尤其是 28876、29816、29819、29834、29839 和 32582,以了解各個獨立的 OverflowError 案例。要視為完成,需要處理適用的案例且不引發 OverflowError,但這個總括 issue 沒有指定檔案、測試或具體的實作入口。

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

    評估

    技術堆疊
    python
    領域
    compilers
    Issue 類型
    功能
    難度
    5/5
    預估耗時
    一週以上
    活躍度
    停滯
    描述清晰度
    需要釐清
    新手友好度
    20/100

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

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