Home
last modified time | relevance | path

Searched refs:Py_EQ (Results 1 – 25 of 61) sorted by relevance

123

/third_party/python/Modules/_sqlite/
Drow.c99 int eq = PyObject_RichCompareBool(left, right, Py_EQ); in equal_ignore_case()
216 if (opid != Py_EQ && opid != Py_NE) in pysqlite_row_richcompare()
221 int eq = PyObject_RichCompareBool(self->description, other->description, Py_EQ); in pysqlite_row_richcompare()
228 return PyBool_FromLong(opid != Py_EQ); in pysqlite_row_richcompare()
/third_party/python/Objects/
Dclassobject.c252 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()
Dcodeobject.c921 if ((op != Py_EQ && op != Py_NE) || in code_richcompare()
930 eq = PyObject_RichCompareBool(co->co_name, cp->co_name, Py_EQ); in code_richcompare()
944 eq = PyObject_RichCompareBool(co->co_code, cp->co_code, Py_EQ); in code_richcompare()
956 eq = PyObject_RichCompareBool(consts1, consts2, Py_EQ); in code_richcompare()
961 eq = PyObject_RichCompareBool(co->co_names, cp->co_names, Py_EQ); in code_richcompare()
963 eq = PyObject_RichCompareBool(co->co_varnames, cp->co_varnames, Py_EQ); in code_richcompare()
965 eq = PyObject_RichCompareBool(co->co_freevars, cp->co_freevars, Py_EQ); in code_richcompare()
967 eq = PyObject_RichCompareBool(co->co_cellvars, cp->co_cellvars, Py_EQ); in code_richcompare()
970 if (op == Py_EQ) in code_richcompare()
Drangeobject.c420 result = PyObject_RichCompareBool(tmp2, zero, Py_EQ); in range_contains_long()
459 cmp_result = PyObject_RichCompareBool(r0->length, r1->length, Py_EQ); in range_equals()
467 cmp_result = PyObject_RichCompareBool(r0->start, r1->start, Py_EQ); in range_equals()
471 cmp_result = PyObject_RichCompareBool(r0->length, _PyLong_GetOne(), Py_EQ); in range_equals()
475 return PyObject_RichCompareBool(r0->step, r1->step, Py_EQ); in range_equals()
487 case Py_EQ: in range_richcompare()
540 cmp_result = PyObject_RichCompareBool(r->length, _PyLong_GetOne(), Py_EQ); in range_hash()
Dinterpreteridobject.c182 if (op != Py_EQ && op != Py_NE) { in interpid_richcompare()
218 if ((op == Py_EQ && equal) || (op == Py_NE && !equal)) { in interpid_richcompare()
Dgenericaliasobject.c447 (op != Py_EQ && op != Py_NE)) in ga_richcompare()
453 PyObject *eq = ga_richcompare(a, b, Py_EQ); in ga_richcompare()
467 int eq = PyObject_RichCompareBool(aa->origin, bb->origin, Py_EQ); in ga_richcompare()
474 return PyObject_RichCompare(aa->args, bb->args, Py_EQ); in ga_richcompare()
Dtupleobject.c444 cmp = PyObject_RichCompareBool(PyTuple_GET_ITEM(a, i), el, Py_EQ); in tuplecontains()
627 int cmp = PyObject_RichCompareBool(self->ob_item[i], value, Py_EQ); in tuple_index_impl()
654 int cmp = PyObject_RichCompareBool(self->ob_item[i], value, Py_EQ); in tuple_count()
702 wt->ob_item[i], Py_EQ); in tuplerichcompare()
715 if (op == Py_EQ) { in tuplerichcompare()
Dunionobject.c121 if (!_PyUnion_Check(b) || (op != Py_EQ && op != Py_NE)) { in union_richcompare()
207 is_duplicate = is_ga ? PyObject_RichCompareBool(i_element, j_element, Py_EQ) in dedup_and_flatten_args()
Dlistobject.c433 cmp = PyObject_RichCompareBool(item, el, Py_EQ); in list_contains()
2159 k = PyObject_RichCompareBool(vt->ob_item[i], wt->ob_item[i], Py_EQ); in unsafe_tuple_compare()
2546 int cmp = PyObject_RichCompareBool(obj, value, Py_EQ); in list_index_impl()
2580 int cmp = PyObject_RichCompareBool(obj, value, Py_EQ); in list_count()
2610 int cmp = PyObject_RichCompareBool(obj, value, Py_EQ); in list_remove()
2647 if (Py_SIZE(vl) != Py_SIZE(wl) && (op == Py_EQ || op == Py_NE)) { in list_richcompare()
2649 if (op == Py_EQ) in list_richcompare()
2665 int k = PyObject_RichCompareBool(vitem, witem, Py_EQ); in list_richcompare()
2680 if (op == Py_EQ) { in list_richcompare()
Dmethodobject.c305 if ((op != Py_EQ && op != Py_NE) || in meth_richcompare()
316 if (op == Py_EQ) in meth_richcompare()
Dodictobject.c815 Py_EQ); in _odict_keys_equal()
1531 if (op == Py_EQ || op == Py_NE) { in odict_richcompare()
1540 if (op == Py_EQ && cmp == Py_False) in odict_richcompare()
1551 res = (eq == (op == Py_EQ)) ? Py_True : Py_False; in odict_richcompare()
Dcomplexobject.c590 if (op != Py_EQ && op != Py_NE) { in complex_richcompare()
628 if (equal == (op == Py_EQ)) in complex_richcompare()
Diterobject.c224 ok = PyObject_RichCompareBool(it->it_sentinel, result, Py_EQ); in calliter_iternext()
/third_party/python/Modules/_ssl/
Dcert.c203 if ((op != Py_EQ) && (op != Py_NE)) { in certificate_richcompare()
207 if (((op == Py_EQ) && (cmp == 0)) || ((op == Py_NE) && (cmp != 0))) { in certificate_richcompare()
/third_party/protobuf/python/google/protobuf/pyext/
Dextension_dict.cc330 if (opid != Py_EQ && opid != Py_NE) { in RichCompare()
338 if (equals ^ (opid == Py_EQ)) { in RichCompare()
Drepeated_composite_container.cc311 int result = PyObject_RichCompareBool(item.get(), value, Py_EQ); in Subscript()
337 if (opid == Py_EQ || opid == Py_NE) { in Subscript()
Drepeated_scalar_container.cc544 if (PyObject_RichCompareBool(elem.get(), value, Py_EQ)) { in Subscript()
564 if (opid != Py_EQ && opid != Py_NE) { in Subscript()
Ddescriptor_containers.cc362 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/
Darraymodule.c701 if (Py_SIZE(va) != Py_SIZE(wa) && (op == Py_EQ || op == Py_NE)) { in array_richcompare()
703 if (op == Py_EQ) in array_richcompare()
724 case Py_EQ: cmp = result == 0; break; in array_richcompare()
746 k = PyObject_RichCompareBool(vi, wi, Py_EQ); in array_richcompare()
766 case Py_EQ: assert(vs == ws); cmp = 1; break; in array_richcompare()
781 if (op == Py_EQ) { in array_richcompare()
1133 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_array_count()
1180 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_array_index_impl()
1202 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_contains()
1230 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_array_remove()
D_collectionsmodule.c981 cmp = PyObject_RichCompareBool(item, v, Py_EQ); in deque_count()
1020 cmp = PyObject_RichCompareBool(item, v, Py_EQ); in deque_contains()
1092 cmp = PyObject_RichCompareBool(item, v, Py_EQ); in deque_index()
1240 cmp = PyObject_RichCompareBool(item, value, Py_EQ); in deque_remove()
1421 if (op == Py_EQ) { in deque_richcompare()
1448 b = PyObject_RichCompareBool(x, y, Py_EQ); in deque_richcompare()
1468 case Py_EQ: cmp = x == y; break; /* if we reached the end of both */ in deque_richcompare()
Datexitmodule.c241 int eq = PyObject_RichCompareBool(cb->func, func, Py_EQ); in atexit_unregister()
D_zoneinfo.c802 if ((rv = PyObject_RichCompareBool(tti0->utcoff, tti1->utcoff, Py_EQ)) < in ttinfo_eq()
807 if ((rv = PyObject_RichCompareBool(tti0->dstoff, tti1->dstoff, Py_EQ)) < in ttinfo_eq()
812 if ((rv = PyObject_RichCompareBool(tti0->tzname, tti1->tzname, Py_EQ)) < in ttinfo_eq()
2348 int rv = PyObject_RichCompareBool(key, node->key, Py_EQ); in find_in_strong_cache()
/third_party/python/Include/
Dobject.h628 #define Py_EQ 2 macro
650 case Py_EQ: if ((val1) == (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \
/third_party/python/Python/
Dhamt.c750 int comp_err = PyObject_RichCompareBool(key, key_or_null, Py_EQ); in hamt_node_bitmap_assoc()
1063 int cmp = PyObject_RichCompareBool(key_or_null, key, Py_EQ); in hamt_node_bitmap_without()
1124 comp_err = PyObject_RichCompareBool(key, key_or_null, Py_EQ); in hamt_node_bitmap_find()
1293 int cmp = PyObject_RichCompareBool(key, el, Py_EQ); in hamt_node_collision_find_index()
2432 int cmp = PyObject_RichCompareBool(v_val, w_val, Py_EQ); in _PyHamt_Eq()
2727 if (!PyHamt_Check(v) || !PyHamt_Check(w) || (op != Py_EQ && op != Py_NE)) { in hamt_tp_richcompare()
/third_party/python/Doc/c-api/
Dobject.rst142 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`.

123