python / python/cpython

Unicode and ascii regular expressions do not agree on ascii space characters

未關閉
#90,027 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

stdlib topic-regex topic-unicode type-feature
主要語言
Python
星號
77.2k
分支
36k
平均合併
1 天 9 小時
30 天內合併 PR
558

描述

BPO 45869
Nosy @ezio-melotti, @stevendaprano, @jorants, @arhadthedev
Files
  • unicode-ascii-space.py: Script that prints all differences in regex classes for ascii characters with or without re.A
  • 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-11-22.13:27:59.303>
    labels = ['expert-regex', 'type-feature', '3.11']
    title = 'Unicode and acii regular expressions do not agree on ascii space characters'
    updated_at = <Date 2021-11-23.13:56:56.369>
    user = 'https://github.com/jorants'
    

    bugs.python.org fields:

    activity = <Date 2021-11-23.13:56:56.369>
    actor = 'arhadthedev'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Regular Expressions']
    creation = <Date 2021-11-22.13:27:59.303>
    creator = 'control-k'
    dependencies = []
    files = ['50457']
    hgrepos = []
    issue_num = 45869
    keywords = []
    message_count = 6.0
    messages = ['406773', '406787', '406796', '406818', '406819', '406837']
    nosy_count = 5.0
    nosy_names = ['ezio.melotti', 'mrabarnett', 'steven.daprano', 'control-k', 'arhadthedev']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue45869'
    versions = ['Python 3.11']
    

    貢獻指南

    開啟貢獻指南

    從這裡開始

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

    研究方向

    先執行 unicode-ascii-space.py,以重現所回報的 Unicode 與 ASCII 正規表示式類別之間的差異。閱讀連結的 issue 討論,並在尋找相關的 CPython 正規表示式實作與測試之前,確認預期行為。當約定的行為對所回報的 ASCII 空白字元保持一致,並且由回歸測試涵蓋時,即視為完成。

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

    評估

    技術堆疊
    python
    領域
    backend
    Issue 類型
    功能
    難度
    4/5
    預估耗時
    3-5 天
    活躍度
    停滯
    描述清晰度
    需要釐清
    新手友好度
    35/100

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

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