python / python/cpython

codegen error handling bugs

Open
#156,466 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I'm reviewing codegen and seeing some bugs in cleanup on errors, in particular scope enter/exit bugs.
Will use this issue to track them.

Linked PRs
  • gh-156467
  • gh-156473
  • gh-156497
  • gh-156498
  • gh-156499
  • gh-156502
  • gh-156507
  • gh-156508
  • gh-156509
  • gh-156511
  • gh-156520
  • gh-156522
  • gh-156535
  • gh-156536
  • gh-156547
  • gh-156571
  • gh-156572
  • gh-156578
  • gh-156579
  • gh-156582
  • gh-156615
  • gh-156616
  • gh-156617
  • gh-157338

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 the linked PRs, especially gh-156467 through gh-157338, to understand which code-generation cleanup and scope enter/exit bugs remain. The issue is a tracking umbrella with no files, tests, or completion criteria named, so done cannot be determined from the issue alone.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
compilers
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.