/third_party/python/Modules/_sqlite/ |
D | row.c | 82 int eq = PyObject_RichCompareBool(left, right, Py_EQ); in equal_ignore_case() 192 if (opid != Py_EQ && opid != Py_NE) in pysqlite_row_richcompare() 197 int eq = PyObject_RichCompareBool(self->description, other->description, Py_EQ); in pysqlite_row_richcompare() 204 return PyBool_FromLong(opid != Py_EQ); in pysqlite_row_richcompare()
|
/third_party/python/Objects/ |
D | classobject.c | 252 if ((op != Py_EQ && op != Py_NE) || in method_richcompare() 260 eq = PyObject_RichCompareBool(a->im_func, b->im_func, Py_EQ); in method_richcompare() 266 if (op == Py_EQ) in method_richcompare() 486 if ((op != Py_EQ && op != Py_NE) || in instancemethod_richcompare() 494 eq = PyObject_RichCompareBool(a->func, b->func, Py_EQ); in instancemethod_richcompare() 497 if (op == Py_EQ) in instancemethod_richcompare()
|
D | codeobject.c | 836 if ((op != Py_EQ && op != Py_NE) || in code_richcompare() 845 eq = PyObject_RichCompareBool(co->co_name, cp->co_name, Py_EQ); in code_richcompare() 859 eq = PyObject_RichCompareBool(co->co_code, cp->co_code, Py_EQ); in code_richcompare() 871 eq = PyObject_RichCompareBool(consts1, consts2, Py_EQ); in code_richcompare() 876 eq = PyObject_RichCompareBool(co->co_names, cp->co_names, Py_EQ); in code_richcompare() 878 eq = PyObject_RichCompareBool(co->co_varnames, cp->co_varnames, Py_EQ); in code_richcompare() 880 eq = PyObject_RichCompareBool(co->co_freevars, cp->co_freevars, Py_EQ); in code_richcompare() 882 eq = PyObject_RichCompareBool(co->co_cellvars, cp->co_cellvars, Py_EQ); in code_richcompare() 885 if (op == Py_EQ) in code_richcompare()
|
D | interpreteridobject.c | 176 if (op != Py_EQ && op != Py_NE) { in interpid_richcompare() 212 if ((op == Py_EQ && equal) || (op == Py_NE && !equal)) { in interpid_richcompare()
|
D | rangeobject.c | 406 result = PyObject_RichCompareBool(tmp2, _PyLong_Zero, Py_EQ); in range_contains_long() 445 cmp_result = PyObject_RichCompareBool(r0->length, r1->length, Py_EQ); in range_equals() 453 cmp_result = PyObject_RichCompareBool(r0->start, r1->start, Py_EQ); in range_equals() 457 cmp_result = PyObject_RichCompareBool(r0->length, _PyLong_One, Py_EQ); in range_equals() 461 return PyObject_RichCompareBool(r0->step, r1->step, Py_EQ); in range_equals() 473 case Py_EQ: in range_richcompare() 526 cmp_result = PyObject_RichCompareBool(r->length, _PyLong_One, Py_EQ); in range_hash()
|
D | genericaliasobject.c | 433 (op != Py_EQ && op != Py_NE)) in ga_richcompare() 439 PyObject *eq = ga_richcompare(a, b, Py_EQ); in ga_richcompare() 453 int eq = PyObject_RichCompareBool(aa->origin, bb->origin, Py_EQ); in ga_richcompare() 460 return PyObject_RichCompare(aa->args, bb->args, Py_EQ); in ga_richcompare()
|
D | tupleobject.c | 398 cmp = PyObject_RichCompareBool(PyTuple_GET_ITEM(a, i), el, Py_EQ); in tuplecontains() 582 int cmp = PyObject_RichCompareBool(self->ob_item[i], value, Py_EQ); in tuple_index_impl() 609 int cmp = PyObject_RichCompareBool(self->ob_item[i], value, Py_EQ); in tuple_count() 657 wt->ob_item[i], Py_EQ); in tuplerichcompare() 670 if (op == Py_EQ) { in tuplerichcompare()
|
D | methodobject.c | 301 if ((op != Py_EQ && op != Py_NE) || in meth_richcompare() 312 if (op == Py_EQ) in meth_richcompare()
|
D | listobject.c | 419 cmp = PyObject_RichCompareBool(item, el, Py_EQ); in list_contains() 2140 k = PyObject_RichCompareBool(vt->ob_item[i], wt->ob_item[i], Py_EQ); in unsafe_tuple_compare() 2527 int cmp = PyObject_RichCompareBool(obj, value, Py_EQ); in list_index_impl() 2561 int cmp = PyObject_RichCompareBool(obj, value, Py_EQ); in list_count() 2591 int cmp = PyObject_RichCompareBool(obj, value, Py_EQ); in list_remove() 2628 if (Py_SIZE(vl) != Py_SIZE(wl) && (op == Py_EQ || op == Py_NE)) { in list_richcompare() 2630 if (op == Py_EQ) in list_richcompare() 2646 int k = PyObject_RichCompareBool(vitem, witem, Py_EQ); in list_richcompare() 2661 if (op == Py_EQ) { in list_richcompare()
|
D | iterobject.c | 224 ok = PyObject_RichCompareBool(it->it_sentinel, result, Py_EQ); in calliter_iternext()
|
D | odictobject.c | 815 Py_EQ); in _odict_keys_equal() 1533 if (op == Py_EQ || op == Py_NE) { in odict_richcompare() 1542 if (op == Py_EQ && cmp == Py_False) in odict_richcompare() 1553 res = (eq == (op == Py_EQ)) ? Py_True : Py_False; in odict_richcompare()
|
D | complexobject.c | 620 if (op != Py_EQ && op != Py_NE) { in complex_richcompare() 658 if (equal == (op == Py_EQ)) in complex_richcompare()
|
D | object.c | 650 int _Py_SwappedOp[] = {Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE}; 687 case Py_EQ: in do_richcompare() 739 if (op == Py_EQ) in PyObject_RichCompareBool()
|
/third_party/boost/libs/python/src/ |
D | object_operators.cpp | 24 BOOST_PYTHON_COMPARE_OP(==, Py_EQ)
|
/third_party/protobuf/python/google/protobuf/pyext/ |
D | extension_dict.cc | 330 if (opid != Py_EQ && opid != Py_NE) { in RichCompare() 338 if (equals ^ (opid == Py_EQ)) { in RichCompare()
|
D | repeated_composite_container.cc | 311 int result = PyObject_RichCompareBool(item.get(), value, Py_EQ); in Subscript() 337 if (opid == Py_EQ || opid == Py_NE) { in Subscript()
|
D | repeated_scalar_container.cc | 544 if (PyObject_RichCompareBool(elem.get(), value, Py_EQ)) { in Subscript() 564 if (opid != Py_EQ && opid != Py_NE) { in Subscript()
|
D | descriptor_containers.cc | 362 int cmp = PyObject_RichCompareBool(value1.get(), value2, Py_EQ); in DescriptorSequence_Equal() 411 int cmp = PyObject_RichCompareBool(value1.get(), value2, Py_EQ); in DescriptorMapping_Equal() 424 if (opid != Py_EQ && opid != Py_NE) { in RichCompare()
|
/third_party/python/Modules/ |
D | arraymodule.c | 685 if (Py_SIZE(va) != Py_SIZE(wa) && (op == Py_EQ || op == Py_NE)) { in array_richcompare() 687 if (op == Py_EQ) in array_richcompare() 708 case Py_EQ: cmp = result == 0; break; in array_richcompare() 730 k = PyObject_RichCompareBool(vi, wi, Py_EQ); in array_richcompare() 750 case Py_EQ: assert(vs == ws); cmp = 1; break; in array_richcompare() 765 if (op == Py_EQ) { in array_richcompare() 1108 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_array_count() 1141 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_array_index() 1163 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_contains() 1191 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_array_remove()
|
D | _collectionsmodule.c | 969 cmp = PyObject_RichCompareBool(item, v, Py_EQ); in deque_count() 1008 cmp = PyObject_RichCompareBool(item, v, Py_EQ); in deque_contains() 1080 cmp = PyObject_RichCompareBool(item, v, Py_EQ); in deque_index() 1156 int cmp = PyObject_RichCompareBool(item, value, Py_EQ); in deque_remove() 1399 if (op == Py_EQ) { in deque_richcompare() 1426 b = PyObject_RichCompareBool(x, y, Py_EQ); in deque_richcompare() 1446 case Py_EQ: cmp = x == y; break; /* if we reached the end of both */ in deque_richcompare()
|
D | atexitmodule.c | 285 eq = PyObject_RichCompareBool(cb->func, func, Py_EQ); in atexit_unregister()
|
D | _zoneinfo.c | 807 if ((rv = PyObject_RichCompareBool(tti0->utcoff, tti1->utcoff, Py_EQ)) < in ttinfo_eq() 812 if ((rv = PyObject_RichCompareBool(tti0->dstoff, tti1->dstoff, Py_EQ)) < in ttinfo_eq() 817 if ((rv = PyObject_RichCompareBool(tti0->tzname, tti1->tzname, Py_EQ)) < in ttinfo_eq() 2353 int rv = PyObject_RichCompareBool(key, node->key, Py_EQ); in find_in_strong_cache()
|
/third_party/python/Include/ |
D | object.h | 536 #define Py_EQ 2 macro 549 case Py_EQ: if ((val1) == (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \
|
/third_party/python/Python/ |
D | hamt.c | 769 int comp_err = PyObject_RichCompareBool(key, key_or_null, Py_EQ); in hamt_node_bitmap_assoc() 1082 int cmp = PyObject_RichCompareBool(key_or_null, key, Py_EQ); in hamt_node_bitmap_without() 1143 comp_err = PyObject_RichCompareBool(key, key_or_null, Py_EQ); in hamt_node_bitmap_find() 1312 int cmp = PyObject_RichCompareBool(key, el, Py_EQ); in hamt_node_collision_find_index() 2451 int cmp = PyObject_RichCompareBool(v_val, w_val, Py_EQ); in _PyHamt_Eq() 2746 if (!PyHamt_Check(v) || !PyHamt_Check(w) || (op != Py_EQ && op != Py_NE)) { in hamt_tp_richcompare()
|
/third_party/python/Doc/c-api/ |
D | object.rst | 142 which must be one of :const:`Py_LT`, :const:`Py_LE`, :const:`Py_EQ`, 152 which must be one of :const:`Py_LT`, :const:`Py_LE`, :const:`Py_EQ`, 161 will always return ``1`` for :const:`Py_EQ` and ``0`` for :const:`Py_NE`.
|