Visitar URL original
Compiler parity: docstring dedent, StopIteration wrapper, constant folding by youknowone · Pull Request #7530 · RustPython/RustPython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Compiler parity: codegen and symboltable changes
- Docstring dedent (clean_basic_doc): match indentation stripping
- StopIteration wrapper for generators/coroutines (PEP 479)
- Constant condition elimination: if False:/while True: optimization
- do_not_emit_bytecode for dead code paths with sub_table consumption
- POP_JUMP_IF_NONE/NOT_NONE for `x is None` patterns
- CALL_KW threshold: nelts + nkwelts > 15 (STACK_USE_GUIDELINE/2)
- Dict literal chunking: 17-pair chunks matching flowgraph.c
- PEP 709: inlined comprehensions in function scopes, symboltable comp_inlined
- Optimize %-format to f-string bytecode (optimize_format_str)
- expr_constant: safe tuple folding, elif test walk for sub_table consumption
  • Loading branch information
youknowone committed Mar 29, 2026
commit 685719f664374a7218d5a2f7c8f7d5041a764340
Loading