Skip to content

v0.4.2

Latest

Choose a tag to compare

@marcomq marcomq released this 13 Nov 07:37
9526be5

New Features

  • Optional Python tracebacks in errors: PyRunner::new().with_tracebacks(true) reports a PyRunnerError::PyError the way Python prints an uncaught error, including the traceback and chained exceptions (raise ... from ...). Disabled by default.
  • Tracebacks from run_file point to the script's real file name and line instead of <string>.

Behavior Changes

  • PyRunnerError::PyError is now displayed without debug quoting/escaping, so multi-line messages are readable.
  • By default, Python errors are reported as Type: message (e.g. ValueError: bad input) on both backends. RustPython no longer prefixes errors with Cannot apply cmd ... and no longer includes the traceback unless with_tracebacks(true) is set.
  • RustPython no longer prints errors to stdout.

Documentation

  • New "Python errors" section in the README.

What's Changed

Full Changelog: v0.4.1...v0.4.2

What's Changed

Full Changelog: v0.4.1...v0.4.2