/external/python/cpython2/Objects/ |
D | codeobject.c | 555 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()
|
D | tupleobject.c | 378 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()
|
D | methodobject.c | 233 if (op != Py_EQ && op != Py_NE) { in meth_richcompare() 252 if (op == Py_EQ) in meth_richcompare()
|
D | listobject.c | 445 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()
|
D | iterobject.c | 187 Py_EQ); in calliter_iternext()
|
D | dictobject.c | 342 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()
|
D | object.c | 598 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()
|
D | memoryobject.c | 724 if (op != Py_EQ && op != Py_NE) in memory_richcompare() 743 if ((equal && op == Py_EQ) || (!equal && op == Py_NE)) in memory_richcompare()
|
D | setobject.c | 95 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()
|
D | complexobject.c | 794 if (op != Py_EQ && op != Py_NE) { in complex_richcompare() 843 if (equal == (op == Py_EQ)) in complex_richcompare()
|
D | bytearrayobject.c | 1037 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()
|
D | weakrefobject.c | 197 if ((op != Py_EQ && op != Py_NE) || self->ob_type != other->ob_type) { in weakref_richcompare()
|
/external/python/cpython2/Modules/_sqlite/ |
D | row.c | 198 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/ |
D | opcode.h | 163 enum cmp_op {PyCmp_LT=Py_LT, PyCmp_LE=Py_LE, PyCmp_EQ=Py_EQ, PyCmp_NE=Py_NE, PyCmp_GT=Py_GT, PyCmp_…
|
D | object.h | 889 #define Py_EQ 2 macro
|
/external/python/cpython2/Modules/ |
D | arraymodule.c | 521 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.c | 574 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()
|
D | threadmodule.c | 479 r = PyObject_RichCompareBool(name, str_dict, Py_EQ); in local_setattro() 548 r = PyObject_RichCompareBool(name, str_dict, Py_EQ); in local_getattro()
|
D | selectmodule.c | 1322 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()
|
D | datetimemodule.c | 1447 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/ |
D | repeated_scalar_container.cc | 547 if (PyObject_RichCompareBool(elem.get(), value, Py_EQ)) { in Remove() 565 if (opid != Py_EQ && opid != Py_NE) { in RichCompare()
|
D | descriptor_containers.cc | 358 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()
|
D | repeated_composite_container.cc | 314 if (opid == Py_EQ || opid == Py_NE) { in RichCompare()
|
/external/python/cpython2/Doc/c-api/ |
D | object.rst | 104 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/ |
D | textio.c | 1050 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()
|