Handle unicode characters in bytecodes.c
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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