python / python/cpython

Handle unicode characters in bytecodes.c

Open
#148,697 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

interpreter-core triaged type-bug
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing bytecodes.c and optimizer_bytecodes.c, then read the discussion in PR 146397 and issue 148609 about Windows regeneration failures. Check linked PR 148699 for work already underway. Done means special Unicode characters are handled safely during regeneration or the CI prevents unsupported characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
build-system, ci-cd, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.