Home
last modified time | relevance | path

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

1234

/external/python/cpython3/Objects/
Dclassobject.c215 if ((op != Py_EQ && op != Py_NE) || in method_richcompare()
223 eq = PyObject_RichCompareBool(a->im_func, b->im_func, Py_EQ); in method_richcompare()
229 Py_EQ); in method_richcompare()
233 if (op == Py_EQ) in method_richcompare()
512 if ((op != Py_EQ && op != Py_NE) || in instancemethod_richcompare()
520 eq = PyObject_RichCompareBool(a->func, b->func, Py_EQ); in instancemethod_richcompare()
523 if (op == Py_EQ) in instancemethod_richcompare()
Dcodeobject.c629 if ((op != Py_EQ && op != Py_NE) || in code_richcompare()
638 eq = PyObject_RichCompareBool(co->co_name, cp->co_name, Py_EQ); in code_richcompare()
650 eq = PyObject_RichCompareBool(co->co_code, cp->co_code, Py_EQ); in code_richcompare()
662 eq = PyObject_RichCompareBool(consts1, consts2, Py_EQ); in code_richcompare()
667 eq = PyObject_RichCompareBool(co->co_names, cp->co_names, Py_EQ); in code_richcompare()
669 eq = PyObject_RichCompareBool(co->co_varnames, cp->co_varnames, Py_EQ); in code_richcompare()
671 eq = PyObject_RichCompareBool(co->co_freevars, cp->co_freevars, Py_EQ); in code_richcompare()
673 eq = PyObject_RichCompareBool(co->co_cellvars, cp->co_cellvars, Py_EQ); in code_richcompare()
676 if (op == Py_EQ) in code_richcompare()
Drangeobject.c374 result = PyObject_RichCompareBool(tmp2, _PyLong_Zero, Py_EQ); in range_contains_long()
413 cmp_result = PyObject_RichCompareBool(r0->length, r1->length, Py_EQ); in range_equals()
421 cmp_result = PyObject_RichCompareBool(r0->start, r1->start, Py_EQ); in range_equals()
425 cmp_result = PyObject_RichCompareBool(r0->length, _PyLong_One, Py_EQ); in range_equals()
429 return PyObject_RichCompareBool(r0->step, r1->step, Py_EQ); in range_equals()
441 case Py_EQ: in range_richcompare()
494 cmp_result = PyObject_RichCompareBool(r->length, _PyLong_One, Py_EQ); in range_hash()
Dtupleobject.c385 Py_EQ); in tuplecontains()
558 int cmp = PyObject_RichCompareBool(self->ob_item[i], value, Py_EQ); in tuple_index_impl()
585 int cmp = PyObject_RichCompareBool(self->ob_item[i], value, Py_EQ); in tuple_count()
633 wt->ob_item[i], Py_EQ); in tuplerichcompare()
646 if (op == Py_EQ) { in tuplerichcompare()
Dmethodobject.c228 if ((op != Py_EQ && op != Py_NE) || in meth_richcompare()
239 if (op == Py_EQ) in meth_richcompare()
Dlistobject.c405 Py_EQ); in list_contains()
2120 k = PyObject_RichCompareBool(vt->ob_item[i], wt->ob_item[i], Py_EQ); in unsafe_tuple_compare()
2502 int cmp = PyObject_RichCompareBool(self->ob_item[i], value, Py_EQ); in list_index_impl()
2529 int cmp = PyObject_RichCompareBool(self->ob_item[i], value, Py_EQ); in list_count()
2556 int cmp = PyObject_RichCompareBool(self->ob_item[i], value, Py_EQ); in list_remove()
2592 if (Py_SIZE(vl) != Py_SIZE(wl) && (op == Py_EQ || op == Py_NE)) { in list_richcompare()
2594 if (op == Py_EQ) in list_richcompare()
2603 wl->ob_item[i], Py_EQ); in list_richcompare()
2616 if (op == Py_EQ) { in list_richcompare()
Diterobject.c223 ok = PyObject_RichCompareBool(it->it_sentinel, result, Py_EQ); in calliter_iternext()
Dsetobject.c85 cmp = PyObject_RichCompareBool(startkey, key, Py_EQ); in set_lookkey()
112 cmp = PyObject_RichCompareBool(startkey, key, Py_EQ); in set_lookkey()
177 cmp = PyObject_RichCompareBool(startkey, key, Py_EQ); in set_add_entry()
209 cmp = PyObject_RichCompareBool(startkey, key, Py_EQ); in set_add_entry()
1837 case Py_EQ: in set_richcompare()
1846 r1 = set_richcompare(v, w, Py_EQ); in set_richcompare()
Dodictobject.c813 Py_EQ); in _odict_keys_equal()
1494 if (op == Py_EQ || op == Py_NE) { in odict_richcompare()
1503 if (op == Py_EQ && cmp == Py_False) in odict_richcompare()
1514 res = (eq == (op == Py_EQ)) ? Py_True : Py_False; in odict_richcompare()
/external/python/cpython2/Objects/
Dcodeobject.c554 if ((op != Py_EQ && op != Py_NE) || in code_richcompare()
572 eq = PyObject_RichCompareBool(co->co_name, cp->co_name, Py_EQ); in code_richcompare()
582 eq = PyObject_RichCompareBool(co->co_code, cp->co_code, Py_EQ); in code_richcompare()
594 eq = PyObject_RichCompareBool(consts1, consts2, Py_EQ); in code_richcompare()
599 eq = PyObject_RichCompareBool(co->co_names, cp->co_names, Py_EQ); in code_richcompare()
601 eq = PyObject_RichCompareBool(co->co_varnames, cp->co_varnames, Py_EQ); in code_richcompare()
603 eq = PyObject_RichCompareBool(co->co_freevars, cp->co_freevars, Py_EQ); in code_richcompare()
605 eq = PyObject_RichCompareBool(co->co_cellvars, cp->co_cellvars, Py_EQ); in code_richcompare()
608 if (op == Py_EQ) in code_richcompare()
Dtupleobject.c375 Py_EQ); in tuplecontains()
529 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in tupleindex()
546 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in tuplecount()
596 wt->ob_item[i], Py_EQ); in tuplerichcompare()
610 case Py_EQ: cmp = vlen == wlen; break; in tuplerichcompare()
625 if (op == Py_EQ) { in tuplerichcompare()
Dmethodobject.c233 if (op != Py_EQ && op != Py_NE) { in meth_richcompare()
252 if (op == Py_EQ) in meth_richcompare()
Dlistobject.c442 Py_EQ); in list_contains()
2298 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in listindex()
2328 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in listcount()
2343 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in listremove()
2381 if (Py_SIZE(vl) != Py_SIZE(wl) && (op == Py_EQ || op == Py_NE)) { in list_richcompare()
2384 if (op == Py_EQ) in list_richcompare()
2395 wl->ob_item[i], Py_EQ); in list_richcompare()
2411 case Py_EQ: cmp = vs == ws; break; in list_richcompare()
2426 if (op == Py_EQ) { in list_richcompare()
Diterobject.c187 Py_EQ); in calliter_iternext()
Ddictobject.c342 cmp = PyObject_RichCompareBool(startkey, key, Py_EQ); in lookdict()
374 cmp = PyObject_RichCompareBool(startkey, key, Py_EQ); in lookdict()
1846 thisaval, thisbval, Py_EQ); in characterize()
1954 cmp = PyObject_RichCompareBool(aval, bval, Py_EQ); in dict_equal()
1973 else if (op == Py_EQ || op == Py_NE) { in dict_richcompare()
1977 res = (cmp == (op == Py_EQ)) ? Py_True : Py_False; in dict_richcompare()
2968 case Py_EQ: in dictview_richcompare()
3230 result = PyObject_RichCompareBool(value, found, Py_EQ); in dictitems_contains()
/external/python/cpython3/Modules/_sqlite/
Drow.c197 if (opid != Py_EQ && opid != Py_NE) in pysqlite_row_richcompare()
203 if ((opid == Py_EQ && res == Py_True) in pysqlite_row_richcompare()
/external/python/cpython2/Modules/_sqlite/
Drow.c198 if (opid != Py_EQ && opid != Py_NE) { in pysqlite_row_richcompare()
205 if ((opid == Py_EQ && res == Py_True) in pysqlite_row_richcompare()
/external/python/cpython2/Modules/
Darraymodule.c521 if (Py_SIZE(va) != Py_SIZE(wa) && (op == Py_EQ || op == Py_NE)) { in array_richcompare()
523 if (op == Py_EQ) in array_richcompare()
541 k = PyObject_RichCompareBool(vi, wi, Py_EQ); in array_richcompare()
558 case Py_EQ: cmp = vs == ws; break; in array_richcompare()
573 if (op == Py_EQ) { in array_richcompare()
935 int cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_count()
957 int cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_index()
982 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_contains()
995 int cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_remove()
D_collectionsmodule.c574 cmp = PyObject_RichCompareBool(item, v, Py_EQ); in deque_count()
614 int cmp = PyObject_RichCompareBool(item, value, Py_EQ); in deque_remove()
1014 if (op == Py_EQ) { in deque_richcompare()
1041 b = PyObject_RichCompareBool(x, y, Py_EQ); in deque_richcompare()
1061 case Py_EQ: cmp = x == y; break; /* if we reached the end of both */ in deque_richcompare()
Dthreadmodule.c479 r = PyObject_RichCompareBool(name, str_dict, Py_EQ); in local_setattro()
548 r = PyObject_RichCompareBool(name, str_dict, Py_EQ); in local_getattro()
/external/python/cpython3/Modules/
Darraymodule.c680 if (Py_SIZE(va) != Py_SIZE(wa) && (op == Py_EQ || op == Py_NE)) { in array_richcompare()
682 if (op == Py_EQ) in array_richcompare()
703 case Py_EQ: cmp = result == 0; break; in array_richcompare()
725 k = PyObject_RichCompareBool(vi, wi, Py_EQ); in array_richcompare()
745 case Py_EQ: assert(vs == ws); cmp = 1; break; in array_richcompare()
760 if (op == Py_EQ) { in array_richcompare()
1103 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_array_count()
1136 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_array_index()
1158 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_contains()
1186 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_array_remove()
D_collectionsmodule.c996 cmp = PyObject_RichCompareBool(item, v, Py_EQ); in deque_count()
1033 cmp = PyObject_RichCompareBool(item, v, Py_EQ); in deque_contains()
1102 cmp = PyObject_RichCompareBool(item, v, Py_EQ); in deque_index()
1178 int 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()
/external/python/cpython2/Include/
Dopcode.h163 enum cmp_op {PyCmp_LT=Py_LT, PyCmp_LE=Py_LE, PyCmp_EQ=Py_EQ, PyCmp_NE=Py_NE, PyCmp_GT=Py_GT, PyCmp_…
/external/python/cpython3/Include/
Dopcode.h138 enum cmp_op {PyCmp_LT=Py_LT, PyCmp_LE=Py_LE, PyCmp_EQ=Py_EQ, PyCmp_NE=Py_NE,
/external/python/cpython3/Python/
Dhamt.c768 int comp_err = PyObject_RichCompareBool(key, key_or_null, Py_EQ); in hamt_node_bitmap_assoc()
1081 int cmp = PyObject_RichCompareBool(key_or_null, key, Py_EQ); in hamt_node_bitmap_without()
1142 comp_err = PyObject_RichCompareBool(key, key_or_null, Py_EQ); in hamt_node_bitmap_find()
1311 int cmp = PyObject_RichCompareBool(key, el, Py_EQ); in hamt_node_collision_find_index()
2450 int cmp = PyObject_RichCompareBool(v_val, w_val, Py_EQ); in _PyHamt_Eq()
2745 if (!PyHamt_Check(v) || !PyHamt_Check(w) || (op != Py_EQ && op != Py_NE)) { in hamt_tp_richcompare()

1234