Closed
Description
Summary
You can cause the latest version of the interpreter (01f7536) to panic with:
thread 'main' panicked at [...]rustpython-vm/src/builtins/bool.rs:212:28:
called `Option::unwrap()` on a `None` value
By running the following (invalid) code:
x = min # Some type which isn't a boolean
x |= True # Perform a boolean operation
Expected
I was hoping for an exception to be thrown, which I could possibly catch! Python 3 does this.
Actual
Panics, see above