◐ Shell
clean mode source ↗

Use _print_exception_bltin in excepthook, register source in linecache by youknowone · Pull Request #7177 · RustPython/RustPython

coderabbitai[bot]

- excepthook: call traceback._print_exception_bltin instead of
  traceback.print_exception to match PyErr_Display behavior
- run_string: register compiled code in linecache._interactive_cache
  so traceback can display source lines and caret indicators
- Remove test_sys_tracebacklimit expectedFailure

youknowone added a commit to youknowone/RustPython that referenced this pull request

Mar 22, 2026
RustPython#7177)

- excepthook: call traceback._print_exception_bltin instead of
  traceback.print_exception to match PyErr_Display behavior
- run_string: register compiled code in linecache._interactive_cache
  so traceback can display source lines and caret indicators
- Remove test_sys_tracebacklimit expectedFailure