← Winnitude! Search  ·  Reader Mode (5462 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 126 LINKS

Rework exception compiler by youknowone · Pull Request #6909 · RustPython/RustPython

Repository navigation

Rework exception compiler - #6909


Merged
youknowone merged 1 commit into RustPython:main from youknowone:exceptions Feb 1, 2026
Merged

Rework exception compiler #6909 youknowone merged 1 commit into RustPython:main from youknowone:exceptions

Conversation

youknowone commented Jan 30, 2026 · edited by coderabbitai
Bot
Loading



Copy link Copy Markdown
Member

Summary by CodeRabbit

  • Refactor
    • Streamlined exception/unwind handling to explicit setup/cleanup/finally sequences and emit explicit pops before unwinds.
  • New Features
    • Added post-generation passes to mark and label exception targets and to lower pseudo-operations into real instructions.
    • Pseudo-instructions now carry explicit targets and provide helpers to detect block push/pop.
  • Behavior
    • Async-for/send semantics clarified: normal async loop termination is distinguished from other exceptions.
  • Breaking Changes
    • Public block-handling APIs simplified; callers must adapt to reduced signatures.

✏️ Tip: You can customize this high-level summary in your review settings.

coderabbitai
Bot
commented Jan 30, 2026 · edited Loading



Copy link Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

Removed per-block handler/stack/lasti fields and helpers; simplified fblock push APIs; SetupFinally/SetupCleanup/SetupWith now carry targets; added IR passes to mark/label exception handlers and convert pseudo-ops; unwind paths now emit explicit SetupFinally/SetupCleanup/PopBlock sequences.

Changes

Cohort / File(s) Summary
Codegen / fblock API
crates/codegen/src/compile.rs
Removed fb_handler, fb_stack_depth, fb_preserve_lasti from FBlockInfo; simplified push_fblock/push_fblock_full signatures; removed current_except_handler and related helpers; unwind paths now emit explicit SetupFinally/SetupCleanup and explicit PopBlock before Pops/Exits.
IR / CFG passes & block metadata
crates/codegen/src/ir.rs
Added except_handler, preserve_lasti, start_depth fields on Block; introduced mark_except_handlers(), label_exception_targets(), convert_pseudo_ops() and integrated them into post-codegen lowering; adjusted max stackdepth computation and handler stack_depth fixups; pseudo-op lowering centralized.
Bytecode pseudo-op shapes & helpers
crates/compiler-core/src/bytecode/instruction.rs
Converted SetupCleanup, SetupFinally, SetupWith to struct variants carrying target: Arg<Label>; added is_block_push() (and is_pop_block()) and updated label_arg / stack_effect metadata accordingly.
Lowering & pseudo-op conversion
crates/codegen/src/compile.rs, crates/codegen/src/ir.rs
Pre-pass converts pseudo-instructions into explicit Setup*/PopBlock sequences; NOP/pseudo filtering moved to convert_pseudo_ops; exception table generation now considers block metadata (except_handler, start_depth, preserve_lasti).
VM frame docs
crates/vm/src/frame.rs
Clarified comments for EndAsyncFor and Send behavior (doc updates only).
Manifests / Misc
Cargo.toml, Cargo.lock
Dependency/manifest lines updated (+285/-329).

Sequence Diagram(s)

sequenceDiagram
    participant CG as Codegen (compile.rs)
    participant IR as IR layer (ir.rs)
    participant BC as Bytecode defs (instruction.rs)
    participant EM as Emitter/VM

    CG->>IR: emit CodeInfo -> Blocks
    IR->>IR: mark_except_handlers(blocks)
    IR->>IR: label_exception_targets(blocks)
    IR->>IR: convert_pseudo_ops(blocks, varnames_len)
    IR->>BC: annotate blocks (except_handler, start_depth, preserve_lasti)
    BC->>EM: emit pseudo-ops as SetupFinally{target}/SetupCleanup{target}/PopBlock
    EM->>EM: ensure PopBlock before POP/EXIT and build exception table
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

Suggested reviewers

  • ShaharNaveh

"I hop through code with whiskers bright,
Targets tucked into setups, blocks step light,
Handlers get marked, pseudo-ops take stage,
PopBlock hops in to tidy the page,
A rabbit cheers -- the bytecode's right!" 🐇✨

🚥 Pre-merge checks | ✅ 3 ✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit's high-level summary is enabled.
Title check ✅ Passed The title 'Rework exception compiler' accurately describes the main objective of the PR, which involves significant refactoring of exception handling in the compiler across multiple files.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit ! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

github-actions
Bot
commented Jan 30, 2026



Copy link Copy Markdown
Contributor

Code has been automatically formatted

The code in this PR has been formatted using:

  • cargo fmt --all
    Please pull the latest changes before pushing again:
git pull origin exceptions
youknowone marked this pull request as ready for review January 30, 2026 21:40 youknowone force-pushed the exceptions branch from 92f8696 to 41538d0
Compare
January 30, 2026 23:12 coderabbitai
Bot
reviewed Jan 30, 2026
View reviewed changes

coderabbitai
Bot
left a comment



Copy link Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@crates/codegen/src/compile.rs`:
- Around line 3178-3186: The code emits a SetupFinally and calls
push_fblock(FBlockType::FinallyTry, ...) but stores FBlockDatum::None so the
finally body is not inlined on unwind; replace the push_fblock call in the try*
path (the block that emits PseudoInstruction::SetupFinally and uses
finally_block) with push_fblock_full and pass
FBlockDatum::FinallyBody(finalbody.to_vec()) so unwind_fblock_stack can inline
finalbody on return/break/continue; apply the same change at the other
occurrence around the lines noted (also where PseudoInstruction::SetupFinally
and FBlockType::FinallyTry are used).
🧹 Nitpick comments (3)
crates/codegen/src/ir.rs (3)

247-256: Consider consolidating NOP removal.

NOPs are removed here after convert_pseudo_ops, but there's also a separate remove_nops() call at Line 195. The early call handles NOPs from constant folding, but this creates a two-phase removal pattern that could be confusing.


1266-1269: POP_BLOCK is converted to NOP twice.

POP_BLOCK is converted to Instruction::Nop here in label_exception_targets (Line 1269) and again in convert_pseudo_ops (Lines 1348-1350). The second conversion is redundant but harmless. The comment on Line 1347 acknowledges this.

Consider removing the redundant case in convert_pseudo_ops since it's already handled:

♻️ Proposed simplification
                 // POP_BLOCK → NOP (should already be NOP from label_exception_targets)
                 PseudoInstruction::PopBlock => {
-                    info.instr = Instruction::Nop.into();
+                    // Already converted to NOP in label_exception_targets
+                    debug_assert!(matches!(info.instr.real(), Some(Instruction::Nop)));
                 }

1360-1367: Unimplemented panic for unexpected pseudo instructions.

Using unimplemented! will cause a panic if these pseudo-ops are encountered. If these represent compiler bugs rather than user errors, consider using unreachable! with a clearer message, or returning an error.

♻️ Proposed change
                 // These should have been resolved earlier
                 PseudoInstruction::AnnotationsPlaceholder
                 | PseudoInstruction::JumpIfFalse { .. }
                 | PseudoInstruction::JumpIfTrue { .. }
                 | PseudoInstruction::StoreFastMaybeNull(_) => {
-                    unimplemented!(
-                        "Unexpected pseudo instruction in convert_pseudo_ops: {pseudo:?}"
-                    )
+                    unreachable!(
+                        "Pseudo instruction should have been resolved earlier: {pseudo:?}"
+                    )
                 }
youknowone force-pushed the exceptions branch from 2ab50de to 0ec4349
Compare
January 31, 2026 13:32 coderabbitai
Bot
reviewed Jan 31, 2026
View reviewed changes

coderabbitai
Bot
left a comment



Copy link Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Actionable comments posted: 3

🤖 Fix all issues with AI agents
In `@crates/codegen/src/compile.rs`:
- Around line 2938-2945: The HandlerCleanup fblock is being pushed with
FBlockDatum::None which drops bound exception names and can unbalance
SetupCleanup/PopBlock for except*; update the named-handler path that currently
emits PseudoInstruction::SetupCleanup and calls
push_fblock(FBlockType::HandlerCleanup, cleanup_end, cleanup_end) to carry the
ExceptionName in the fb_datum (i.e., push FBlockDatum::ExceptionName(name)
instead of None) so unwind_fblock/compile_break_continue will clear the binding
correctly, and for except* ensure the number of SetupCleanup emitted matches
PopBlock handling (either emit the second cleanup for the multi-except* case or
adjust unwind_fblock to detect and handle single-cleanup HandlerCleanup
specially) so cleanup counts remain balanced.

In `@crates/codegen/src/ir.rs`:
- Around line 921-932: The subtraction computing handler.stack_depth can
underflow: replace the expression h_start - 1 - (handler.preserve_lasti as u32)
with a saturating subtraction using start_depths/ExceptHandlerInfo values (e.g.,
compute let sub = 1 + (handler.preserve_lasti as u32); handler.stack_depth =
h_start.saturating_sub(sub)) and add a debug_assert!(h_start != u32::MAX) or
similar debug_assert to catch unexpected sentinel values; update the loop in
blocks -> instructions where ExceptHandlerInfo (handler) is adjusted to use this
saturating logic to prevent underflow.

In `@crates/compiler-core/src/bytecode/instruction.rs`:
- Around line 1037-1051: stack_effect for the pseudo-instructions SetupCleanup,
SetupFinally, and SetupWith currently returns 0 while stack_effect_info returns
non-zero handler-entry depths, causing inconsistency; update the
stack_effect_info implementation for the variants SetupCleanup, SetupFinally,
and SetupWith to return (0,0) to match stack_effect(), and add a short doc
comment near stack_effect_info explaining that these instructions' handler-entry
depths are computed separately in max_stackdepth (so stack_effect() reflects
fall-through semantics). Ensure you modify the match arms for those variants in
the stack_effect_info implementation and include the explanatory comment in the
same module.
youknowone force-pushed the exceptions branch from 0ec4349 to ee4fe41
Compare
January 31, 2026 14:56 coderabbitai
Bot
reviewed Jan 31, 2026
View reviewed changes

coderabbitai
Bot
left a comment



Copy link Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Actionable comments posted: 0

Caution

Some comments are outside the diff and can't be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
crates/codegen/src/compile.rs (2)

1519-1537: ⚠️ Potential issue | 🟠 Major

Restore symbol-table cursor after inline finally compilation.
Inline finalbody compilation during unwind can advance next_sub_table, desyncing later normal/exception-path compilation for finalbody with nested scopes.

🛠️ Suggested fix
                 // Push PopValue fblock if preserving tos
                 if preserve_tos {
                     self.push_fblock(
                         FBlockType::PopValue,
                         saved_fblock.fb_block,
                         saved_fblock.fb_block,
                     )?;
                 }

-                self.compile_statements(&body)?;
+                let sub_table_cursor =
+                    self.symbol_table_stack.last().map(|t| t.next_sub_table);
+                self.compile_statements(&body)?;
+                if let Some(cursor) = sub_table_cursor
+                    && let Some(current_table) = self.symbol_table_stack.last_mut()
+                {
+                    current_table.next_sub_table = cursor;
+                }

4893-4906: ⚠️ Potential issue | 🟠 Major

Pop the ExceptionHandler fblock on the suppression path.
Currently the suppress branch jumps to after_block without PopBlock/pop_fblock, leaving stale handler state for subsequent unwinds.

🛠️ Suggested fix
         emit!(self, Instruction::PopTop); // pop __exit__
         emit!(self, Instruction::PopTop); // pop lasti
+        emit!(self, PseudoInstruction::PopBlock);
+        self.pop_fblock(FBlockType::ExceptionHandler);
         emit!(
             self,
             PseudoInstruction::Jump {
                 target: after_block
             }
         );
🧹 Nitpick comments (1)
crates/codegen/src/ir.rs (1)

1204-1326: Consider asserting consistent except stacks at merge points.

Because visited short-circuits, a block reached with a different except stack will be ignored. A stored entry stack + debug assert would guard invariants.

💡 Suggested defensive check
-    #[derive(Clone)]
+    #[derive(Clone, PartialEq, Eq)]
     struct ExceptEntry {
         handler_block: BlockIdx,
         preserve_lasti: bool,
     }

     let mut visited = vec![false; num_blocks];
     let mut block_stacks: Vec<Option<Vec<ExceptEntry>>> = vec![None; num_blocks];
+    let mut entry_stacks: Vec<Option<Vec<ExceptEntry>>> = vec![None; num_blocks];

     // Entry block
     visited[0] = true;
     block_stacks[0] = Some(Vec::new());
+    entry_stacks[0] = Some(Vec::new());

@@
-                if target != BlockIdx::NULL && !visited[target.idx()] {
-                    visited[target.idx()] = true;
-                    block_stacks[target.idx()] = Some(stack.clone());
-                    todo.push(target);
-                }
+                if target != BlockIdx::NULL {
+                    if let Some(existing) = entry_stacks[target.idx()].as_ref() {
+                        debug_assert_eq!(existing, &stack, "mismatched except stack");
+                    } else {
+                        entry_stacks[target.idx()] = Some(stack.clone());
+                    }
+                    if !visited[target.idx()] {
+                        visited[target.idx()] = true;
+                        block_stacks[target.idx()] = Some(stack.clone());
+                        todo.push(target);
+                    }
+                }

@@
-                if target != BlockIdx::NULL && !visited[target.idx()] {
-                    visited[target.idx()] = true;
-                    block_stacks[target.idx()] = Some(stack.clone());
-                    todo.push(target);
-                }
+                if target != BlockIdx::NULL {
+                    if let Some(existing) = entry_stacks[target.idx()].as_ref() {
+                        debug_assert_eq!(existing, &stack, "mismatched except stack");
+                    } else {
+                        entry_stacks[target.idx()] = Some(stack.clone());
+                    }
+                    if !visited[target.idx()] {
+                        visited[target.idx()] = true;
+                        block_stacks[target.idx()] = Some(stack.clone());
+                        todo.push(target);
+                    }
+                }
youknowone force-pushed the exceptions branch from ee4fe41 to a0752fd
Compare
February 1, 2026 00:45 coderabbitai
Bot
reviewed Feb 1, 2026
View reviewed changes

coderabbitai
Bot
left a comment



Copy link Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Actionable comments posted: 0

Caution

Some comments are outside the diff and can't be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
crates/codegen/src/compile.rs (1)

4889-4913: ⚠️ Potential issue | 🟠 Major

Close the SetupCleanup region on the suppressed-with path.

The suppressed branch exits the exception handler without emitting PopBlock, so the SetupCleanup region can leak into after_block and misroute later exceptions to cleanup_block. Add a PopBlock before PopExcept in the suppress path.

🛠️ Suggested fix
         self.switch_to_block(suppress_block);
         emit!(self, Instruction::PopTop); // pop True (TO_BOOL result)
+        emit!(self, PseudoInstruction::PopBlock);
         emit!(self, Instruction::PopExcept); // pop exc and restore prev_exc
         emit!(self, Instruction::PopTop); // pop __exit__
         emit!(self, Instruction::PopTop); // pop lasti
🧹 Nitpick comments (1)
crates/codegen/src/ir.rs (1)

863-867: Persist computed start_depth into Block.start_depth.

start_depths is computed but never stored, leaving the new field None and out of sync with the comment. Consider populating it for downstream uses.

♻️ Suggested update
         if DEBUG {
             eprintln!("DONE: {maxdepth}");
         }
+
+        // Persist block entry depths for downstream consumers
+        for (idx, block) in self.blocks.iter_mut().enumerate() {
+            let depth = start_depths[idx];
+            if depth != u32::MAX {
+                block.start_depth = Some(depth);
+            }
+        }
 
         // Fix up handler stack_depth in ExceptHandlerInfo using start_depths
youknowone force-pushed the exceptions branch from a0752fd to 41860a9
Compare
February 1, 2026 03:16 coderabbitai
Bot
reviewed Feb 1, 2026
View reviewed changes

coderabbitai
Bot
left a comment



Copy link Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In `@crates/codegen/src/compile.rs`:
- Around line 3021-3026: The finally-entry path currently emits
PseudoInstruction::PopBlock but leaves the FinallyTry fblock on the
fblock/except stack, causing handlers inside finally to re-trigger unwind logic;
update the handler-to-finally path to also pop the FinallyTry fblock before
jumping into the finally body (same behavior as the else_block path) so the
except stack is consistent when entering finally_block  --  locate the logic around
finalbody, finally_block, else_block and the emitted PseudoInstruction::PopBlock
and ensure the corresponding fblock (FinallyTry) is removed from the
fblock/except stack prior to entering the finally body.

In `@crates/codegen/src/ir.rs`:
- Around line 824-858: The SEND jump path is being treated with jump_effect = -1
which undercounts target block start depth because END_SEND (which actually pops
the receiver) may not have executed yet; modify the SEND handling in the block
(the match on instr.real() / Instruction::Send) to use jump_effect = 0 by
default for SEND, and only use -1 when the jump target is strictly after the
END_SEND instruction for that send (i.e., detect the END_SEND instruction
index/label corresponding to this Send and compare ins.target to it); update the
computation that sets target_depth and maxdepth and leave stackdepth_push usage
unchanged (symbols to locate: instr.real(), Instruction::Send, ins.target,
END_SEND detection logic, stackdepth_push).
youknowone force-pushed the exceptions branch 2 times, most recently from fa2c13f to ed6e28f
Compare
February 1, 2026 07:56 coderabbitai
Bot
reviewed Feb 1, 2026
View reviewed changes

coderabbitai
Bot
left a comment



Copy link Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Actionable comments posted: 0

Caution

Some comments are outside the diff and can't be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
crates/codegen/src/compile.rs (1)

4897-4905: ⚠️ Potential issue | 🟠 Major

Clear ExceptionHandler fblock on the suppressed with path.

The suppressed path jumps to after_block without POP_BLOCK/pop_fblock, leaving the handler active and corrupting later unwinds/exception table coverage.

🛠️ Suggested fix
         self.switch_to_block(suppress_block);
         emit!(self, Instruction::PopTop); // pop True (TO_BOOL result)
+        emit!(self, PseudoInstruction::PopBlock);
+        self.pop_fblock(FBlockType::ExceptionHandler);
         emit!(self, Instruction::PopExcept); // pop exc and restore prev_exc
         emit!(self, Instruction::PopTop); // pop __exit__
         emit!(self, Instruction::PopTop); // pop lasti
coderabbitai
Bot
reviewed Feb 1, 2026
View reviewed changes

coderabbitai
Bot
left a comment



Copy link Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@crates/codegen/src/ir.rs`:
- Around line 1221-1224: The POP_BLOCK handling silently pops an empty exception
stack; instead guard the pop and surface a failure for malformed CFGs by
checking whether stack.is_empty() before calling stack.pop() inside the is_pop
branch for POP_BLOCK; if empty, return or panic with a diagnostic containing the
block index (bi) and instruction index (i) (or otherwise propagate an Err) so
the invalid CFG is detected, otherwise perform stack.pop() and set
blocks[bi].instructions[i].instr = Instruction::Nop.into() as before.
🧹 Nitpick comments (2)
crates/codegen/src/ir.rs (2)

824-838: Use checked_add for handler depth to keep overflow handling consistent.
The rest of the stack-depth computation uses checked arithmetic; this path currently doesn't.

♻️ Proposed fix
-                        let handler_depth = depth + handler_effect;
+                        let handler_depth = depth
+                            .checked_add(handler_effect)
+                            .ok_or(InternalError::StackOverflow)?;

873-889: Consider persisting computed start depths into Block.start_depth.
The field is added but never populated, which can mislead downstream consumers.

♻️ Proposed fix
-        // Fix up handler stack_depth in ExceptHandlerInfo using start_depths
+        // Persist block start depths for downstream consumers (if any)
+        for (i, block) in self.blocks.iter_mut().enumerate() {
+            block.start_depth = (start_depths[i] != u32::MAX).then_some(start_depths[i]);
+        }
+
+        // Fix up handler stack_depth in ExceptHandlerInfo using start_depths
Comment thread crates/codegen/src/ir.rs Comment on lines +1221 to +1224
} else if is_pop {
stack.pop();
// POP_BLOCK → NOP
blocks[bi].instructions[i].instr = Instruction::Nop.into();
Rework exception compiler to use CFG-based handler analysis 7704b71
Move exception handler tracking from compile-time fblock metadata to
a post-codegen CFG analysis pass, matching flowgraph.c's pipeline.

Compiler changes (compile.rs):
- Remove fb_handler, fb_stack_depth, fb_preserve_lasti from FBlockInfo
- Remove handler_stack_depth() and current_except_handler() helpers
- Emit SetupFinally/SetupCleanup/SetupWith/PopBlock pseudo instructions
  instead of manually tracking handlers in fblocks
- Add dead blocks after raise/break/continue/return to prevent
  dead code from corrupting the except stack
- Add missing PopTop after CallIntrinsic1 ImportStar
- Fix async comprehension SetupFinally/GetANext emission order
- Fix try-except* handler: move BUILD_LIST/COPY before handler loop
- Rework unwind_fblock for HandlerCleanup, TryExcept, FinallyTry,
  FinallyEnd, and With/AsyncWith to emit proper PopBlock sequences

New CFG analysis passes (ir.rs):
- mark_except_handlers(): mark blocks targeted by SETUP_* instructions
- label_exception_targets(): walk CFG with except stack to set
  per-instruction handler info and convert POP_BLOCK to NOP
- convert_pseudo_ops(): lower remaining pseudo ops after analysis
- Compute handler entry depth from SETUP_* type in max_stackdepth()
  (SETUP_CLEANUP=+2, SETUP_FINALLY/SETUP_WITH=+1)
- Fix SEND jump_effect from -1 to 0 (receiver stays until END_SEND)
- Add underflow guard for handler stack_depth calculation

Instruction metadata (instruction.rs):
- SetupCleanup/SetupFinally/SetupWith now carry target: Arg<Label>
- Add is_block_push()/is_pop_block() to PseudoInstruction/AnyInstruction
- Fix LoadSpecial stack_effect from (2,2) to (1,1)
- Set Setup* stack_effect_info to (0,0) for fall-through consistency

Fixes 3 test_coroutines expectedFailures:
- test_with_8, test_for_assign_raising_stop_async_iteration{,_2}
youknowone force-pushed the exceptions branch from ed6e28f to 7704b71
Compare
February 1, 2026 08:53 youknowone merged commit 97861c6 into RustPython : main Feb 1, 2026 youknowone deleted the exceptions branch February 1, 2026 08:54

github-actions
Bot
commented Feb 1, 2026



Copy link Copy Markdown
Contributor

📦 Library Dependencies

The following Lib/ modules were modified. Here are their dependencies:

[x] test: cpython/Lib/test/test_coroutines.py (TODO: 22)

dependencies:

dependent tests: (no tests depend on coroutines)

[ ] lib: cpython/Lib/enum.py
[ ] test: cpython/Lib/test/test_enum.py (TODO: 15)

dependencies:

  • enum (native: builtins, sys)
    • types

dependent tests: (10 tests)

  • enum: test_argparse test_ast test_enum test_httplib test_json test_patma test_signal test_ssl test_time test_uuid

Legend:

  • [+] path exists in CPython
  • [x] up-to-date, [ ] outdated
coderabbitai
Bot
mentioned this pull request Feb 2, 2026 Fix test_asyncio for windows #6959 Merged coderabbitai
Bot
mentioned this pull request Feb 14, 2026 Update test_sys from v3.14.3 and impl more sys module #7075 Merged This was referenced Feb 22, 2026 sys.monitoring #7197 Closed cold block reordering and jump normalization #7210 Merged coderabbitai
Bot
mentioned this pull request Mar 12, 2026 Newtype oparg align methods #7403 Merged coderabbitai
Bot
mentioned this pull request Mar 27, 2026 Bytecode parity #7507 Merged Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

1 participant