diff --git a/vm/src/obj/objlist.rs b/vm/src/obj/objlist.rs index 0df789385..4175b6005 100644 --- a/vm/src/obj/objlist.rs +++ b/vm/src/obj/objlist.rs @@ -109,7 +109,7 @@ fn list_gt(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult { seq_gt(vm, &zelf, &other)? } else { return Err(vm.new_type_error(format!( - "Cannot compare {} and {} using '<'", + "Cannot compare {} and {} using '>'", zelf.borrow(), other.borrow() ))); @@ -131,7 +131,7 @@ fn list_ge(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult { seq_ge(vm, &zelf, &other)? } else { return Err(vm.new_type_error(format!( - "Cannot compare {} and {} using '<'", + "Cannot compare {} and {} using '>='", zelf.borrow(), other.borrow() ))); @@ -153,7 +153,7 @@ fn list_le(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult { seq_le(vm, &zelf, &other)? } else { return Err(vm.new_type_error(format!( - "Cannot compare {} and {} using '<'", + "Cannot compare {} and {} using '<='", zelf.borrow(), other.borrow() ))); diff --git a/vm/src/obj/objtuple.rs b/vm/src/obj/objtuple.rs index 233faad20..dc10020f4 100644 --- a/vm/src/obj/objtuple.rs +++ b/vm/src/obj/objtuple.rs @@ -47,7 +47,7 @@ fn tuple_gt(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult { seq_gt(vm, &zelf, &other)? } else { return Err(vm.new_type_error(format!( - "Cannot compare {} and {} using '<'", + "Cannot compare {} and {} using '>'", zelf.borrow(), other.borrow() ))); @@ -69,7 +69,7 @@ fn tuple_ge(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult { seq_ge(vm, &zelf, &other)? } else { return Err(vm.new_type_error(format!( - "Cannot compare {} and {} using '<'", + "Cannot compare {} and {} using '>='", zelf.borrow(), other.borrow() ))); @@ -91,7 +91,7 @@ fn tuple_le(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult { seq_le(vm, &zelf, &other)? } else { return Err(vm.new_type_error(format!( - "Cannot compare {} and {} using '<'", + "Cannot compare {} and {} using '<='", zelf.borrow(), other.borrow() )));