◐ Shell
clean mode source ↗

Fix traceback, syntax errors, and exception handling by youknowone · Pull Request #7015 · RustPython/RustPython

@youknowone youknowone changed the title Traceback Fix traceback, syntax errors, and exception handling

Feb 6, 2026

coderabbitai[bot]

coderabbitai[bot]

coderabbitai[bot]

coderabbitai[bot]

coderabbitai[bot]

coderabbitai[bot]

@youknowone

coderabbitai[bot]

coderabbitai[bot]

ShaharNaveh

coderabbitai[bot]

- Improve unclosed bracket detection with "'(' was never closed" message
- Fix IndentationError location to point to end of line
- Implement frame.clear() with proper checks for executing/suspended frames
- Fix exception context chaining for propagated exceptions
- Add traceback.__dir__() and prevent tb_next deletion
- Fix subscript operation source range restoration in compiler
- Change "duplicate parameter" to "duplicate argument" error message
- Refactor duplicate code in asyncgenerator.rs and frame.rs

This was referenced

Feb 8, 2026

This was referenced

Feb 26, 2026