python / python/cpython

Handle unicode characters in bytecodes.c

オープン
#148,697 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず bytecodes.c と optimizer_bytecodes.c を確認し、次に Windows での再生成の失敗について PR 146397 と issue 148609 の議論を読んでください。すでに進行中の作業については、リンクされている PR 148699 を確認してください。再生成中に特殊な Unicode 文字が安全に処理されるか、CI によってサポートされていない文字が阻止されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
c, python
領域
build-system, ci-cd, compilers
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。