mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-17 01:51:39 +09:00
Make example work for sub/rsub. Still work in progress.
This commit is contained in:
@@ -226,7 +226,7 @@ fn int_sub(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
|
||||
.ctx
|
||||
.new_float(i.to_f64().unwrap() - objfloat::get_value(i2)))
|
||||
} else {
|
||||
Err(vm.new_type_error(format!("Cannot substract {:?} and {:?}", i, i2)))
|
||||
Err(vm.new_not_implemented_error(format!("Cannot substract {:?} and {:?}", i, i2)))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user