Home
last modified time | relevance | path

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

12

/external/python/cpython2/Objects/
Dcodeobject.c555 if ((op != Py_EQ && op != Py_NE) || in code_richcompare()
573 eq = PyObject_RichCompareBool(co->co_name, cp->co_name, Py_EQ); in code_richcompare()
583 eq = PyObject_RichCompareBool(co->co_code, cp->co_code, Py_EQ); in code_richcompare()
595 eq = PyObject_RichCompareBool(consts1, consts2, Py_EQ); in code_richcompare()
600 eq = PyObject_RichCompareBool(co->co_names, cp->co_names, Py_EQ); in code_richcompare()
602 eq = PyObject_RichCompareBool(co->co_varnames, cp->co_varnames, Py_EQ); in code_richcompare()
604 eq = PyObject_RichCompareBool(co->co_freevars, cp->co_freevars, Py_EQ); in code_richcompare()
606 eq = PyObject_RichCompareBool(co->co_cellvars, cp->co_cellvars, Py_EQ); in code_richcompare()
609 if (op == Py_EQ) in code_richcompare()
Dtupleobject.c378 Py_EQ); in tuplecontains()
532 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in tupleindex()
549 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in tuplecount()
599 wt->ob_item[i], Py_EQ); in tuplerichcompare()
613 case Py_EQ: cmp = vlen == wlen; break; in tuplerichcompare()
628 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.c445 Py_EQ); in list_contains()
2301 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in listindex()
2331 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in listcount()
2346 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in listremove()
2384 if (Py_SIZE(vl) != Py_SIZE(wl) && (op == Py_EQ || op == Py_NE)) { in list_richcompare()
2387 if (op == Py_EQ) in list_richcompare()
2398 wl->ob_item[i], Py_EQ); in list_richcompare()
2414 case Py_EQ: cmp = vs == ws; break; in list_richcompare()
2429 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()
1793 thisaval, thisbval, Py_EQ); in characterize()
1901 cmp = PyObject_RichCompareBool(aval, bval, Py_EQ); in dict_equal()
1919 else if (op == Py_EQ || op == Py_NE) { in dict_richcompare()
1923 res = (cmp == (op == Py_EQ)) ? Py_True : Py_False; in dict_richcompare()
2905 case Py_EQ: in dictview_richcompare()
3157 return PyObject_RichCompareBool(value, found, Py_EQ); in dictitems_contains()
Dobject.c598 int _Py_SwappedOp[] = {Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE};
674 {Py_EQ, 0}, in try_rich_to_3way_compare()
879 case Py_EQ: c = c == 0; break; in convert_3way_to_object()
905 v->ob_type != w->ob_type && op != Py_EQ && op != Py_NE && in try_3way_to_rich_compare()
998 if (op == Py_EQ) in PyObject_RichCompareBool()
Dmemoryobject.c724 if (op != Py_EQ && op != Py_NE) in memory_richcompare()
743 if ((equal && op == Py_EQ) || (!equal && op == Py_NE)) in memory_richcompare()
Dsetobject.c95 cmp = PyObject_RichCompareBool(startkey, key, Py_EQ); in set_lookkey()
128 cmp = PyObject_RichCompareBool(startkey, key, Py_EQ); in set_lookkey()
1807 case Py_EQ: in set_richcompare()
1816 r1 = set_richcompare(v, w, Py_EQ); in set_richcompare()
Dcomplexobject.c794 if (op != Py_EQ && op != Py_NE) { in complex_richcompare()
843 if (equal == (op == Py_EQ)) in complex_richcompare()
Dbytearrayobject.c1037 if (Py_BytesWarningFlag && op == Py_EQ) { in bytearray_richcompare()
1063 if (self_size != other_size && (op == Py_EQ || op == Py_NE)) { in bytearray_richcompare()
1085 case Py_EQ: cmp = cmp == 0; break; in bytearray_richcompare()
Dweakrefobject.c197 if ((op != Py_EQ && op != Py_NE) || self->ob_type != other->ob_type) { in weakref_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/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_…
Dobject.h889 #define Py_EQ 2 macro
/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()
1004 if (op == Py_EQ) { in deque_richcompare()
1031 b = PyObject_RichCompareBool(x, y, Py_EQ); in deque_richcompare()
1051 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()
Dselectmodule.c1322 if (op == Py_EQ || op == Py_NE) { in kqueue_event_richcompare()
1323 PyObject *res = op == Py_EQ ? Py_False : Py_True; in kqueue_event_richcompare()
1343 case Py_EQ: in kqueue_event_richcompare()
Ddatetimemodule.c1447 case Py_EQ: istrue = diff == 0; break; in diff_to_bool()
1773 else if (op == Py_EQ || op == Py_NE) in delta_richcompare()
2623 else if (op == Py_EQ || op == Py_NE) in date_richcompare()
3348 if (op == Py_EQ || op == Py_NE) { in time_richcompare()
3349 PyObject *result = op == Py_EQ ? Py_False : Py_True; in time_richcompare()
4292 if (op == Py_EQ || op == Py_NE) { in datetime_richcompare()
4293 PyObject *result = op == Py_EQ ? Py_False : Py_True; in datetime_richcompare()
/external/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc547 if (PyObject_RichCompareBool(elem.get(), value, Py_EQ)) { in Remove()
565 if (opid != Py_EQ && opid != Py_NE) { in RichCompare()
Ddescriptor_containers.cc358 int cmp = PyObject_RichCompareBool(value1.get(), value2, Py_EQ); in DescriptorSequence_Equal()
407 int cmp = PyObject_RichCompareBool(value1.get(), value2, Py_EQ); in DescriptorMapping_Equal()
420 if (opid != Py_EQ && opid != Py_NE) { in RichCompare()
Drepeated_composite_container.cc314 if (opid == Py_EQ || opid == Py_NE) { in RichCompare()
/external/python/cpython2/Doc/c-api/
Dobject.rst104 which must be one of :const:`Py_LT`, :const:`Py_LE`, :const:`Py_EQ`,
114 which must be one of :const:`Py_LT`, :const:`Py_LE`, :const:`Py_EQ`,
123 will always return ``1`` for :const:`Py_EQ` and ``0`` for :const:`Py_NE`.
/external/python/cpython2/Modules/_io/
Dtextio.c1050 cmp = PyObject_RichCompareBool(cookieObj, _PyIO_zero, Py_EQ); in textiowrapper_init()
2028 cmp = PyObject_RichCompareBool(cookieObj, _PyIO_zero, Py_EQ); in textiowrapper_seek()
2049 cmp = PyObject_RichCompareBool(cookieObj, _PyIO_zero, Py_EQ); in textiowrapper_seek()

12