Skip to content

Commit 8651fbb

Browse files
committed
Improve codegen bytecode parity
- Add CFG block splitting, jump threading, backward jump normalization - Add genexpr StopIteration wrapper - Add ConstantData::Slice and constant slice folding - Add duplicate_exits_without_lineno and Block: Clone - Add builtin(genexpr) optimization for tuple/list/set/all/any - Add compile_try_except_no_finally for try-except without finally - Add module_name_declared_global_in_nested_scope - Add constant tuple folding in try_fold_constant_expr - Add fstring literal-only optimization and empty literal elision - Fix duplicate_exits_without_lineno: splice new blocks into linked list
1 parent 1c39fdb commit 8651fbb

8 files changed

Lines changed: 933 additions & 151 deletions

File tree

‎Lib/test/test_scope.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ def dec(self):
692692
self.assertEqual(c.dec(), 1)
693693
self.assertEqual(c.dec(), 0)
694694

695-
@unittest.expectedFailure # TODO: RUSTPYTHON; figure out how to communicate that `y = 9` should be stored as a global rather than a STORE_NAME, even when the `global y` is in a nested subscope
696695
def testGlobalInParallelNestedFunctions(self):
697696
# A symbol table bug leaked the global statement from one
698697
# function to other nested functions in the same block.

0 commit comments

Comments
 (0)