python / python/cpython

Handle unicode characters in bytecodes.c

未關閉
#148,697 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

interpreter-core triaged type-bug
主要語言
Python
星號
77.2k
分支
35.9k
PR 合併指標
PR 指標待擷取

描述

Bug report

Bug description:

Special unicode characters in bytecodes.c and optimizer_bytecodes.c work fine on unix, pass tests in CI but can fail when regenerating on windows. See https://github.com/python/cpython/pull/146397#discussion_r3100407773 or #148609.

We should either handle the special characters and/or update the CI to not allow them.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs
  • gh-148699

貢獻指南

開啟貢獻指南

從這裡開始

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

研究方向

先檢查 bytecodes.c 和 optimizer_bytecodes.c,然後閱讀 PR 146397 和 issue 148609 中關於 Windows 重新產生失敗的討論。查看連結的 PR 148699,了解已在進行的工作。當特殊 Unicode 字元在重新產生期間能安全處理,或 CI 阻止不受支援的字元時,即表示完成。

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

評估

技術堆疊
c, python
領域
build-system, ci-cd, compilers
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

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

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