We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91a257e commit 03605adCopy full SHA for 03605ad
1 file changed
src/runtime/PyObject.cpp
@@ -1161,7 +1161,7 @@ PyResult<PyObject *> PyObject::__ne__(const PyObject *other) const
1161
if (!type_prototype().__eq__.has_value()) { return Ok(not_implemented()); }
1162
return call_slot(*type_prototype().__eq__, this, other).and_then([](PyObject *obj) {
1163
return truthy(obj, VirtualMachine::the().interpreter()).and_then([](bool value) {
1164
- return Ok(value ? py_true() : py_false());
+ return Ok(value ? py_false() : py_true());
1165
});
1166
1167
}
0 commit comments