Home
last modified time | relevance | path

Searched refs:Py_NE (Results 1 – 25 of 77) sorted by relevance

1234

/external/python/cffi/c/
Dminibuffer.h202 if (self_size != other_size && (op == Py_EQ || op == Py_NE)) { in mb_richcompare()
204 cmp = (op == Py_NE); in mb_richcompare()
225 case Py_NE: cmp = cmp != 0; break; in mb_richcompare()
/external/python/cpython3/Objects/
Dinterpreteridobject.c175 if (op != Py_EQ && op != Py_NE) { in interpid_richcompare()
211 if ((op == Py_EQ && equal) || (op == Py_NE && !equal)) { in interpid_richcompare()
Dclassobject.c272 if ((op != Py_EQ && op != Py_NE) || in method_richcompare()
549 if ((op != Py_EQ && op != Py_NE) || in instancemethod_richcompare()
Dweakrefobject.c203 if ((op != Py_EQ && op != Py_NE) || in weakref_richcompare()
211 if (op == Py_NE) in weakref_richcompare()
Drangeobject.c440 case Py_NE: in range_richcompare()
445 if (op == Py_NE) in range_richcompare()
Dmethodobject.c268 if ((op != Py_EQ && op != Py_NE) || in meth_richcompare()
Dobject.c700 int _Py_SwappedOp[] = {Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE};
740 case Py_NE: in do_richcompare()
789 else if (op == Py_NE) in PyObject_RichCompareBool()
Dcodeobject.c815 if ((op != Py_EQ && op != Py_NE) || in code_richcompare()
873 if (op == Py_NE) in code_richcompare()
Dbytesobject.c1572 if (config->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytes_richcompare()
1609 case Py_NE: in bytes_richcompare()
1618 else if (op == Py_EQ || op == Py_NE) { in bytes_richcompare()
1620 eq ^= (op == Py_NE); in bytes_richcompare()
/external/python/cpython2/Modules/_sqlite/
Drow.c198 if (opid != Py_EQ && opid != Py_NE) { in pysqlite_row_richcompare()
206 || (opid == Py_NE && res == Py_False)) { 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_…
/external/python/cpython3/Include/
Dopcode.h139 enum cmp_op {PyCmp_LT=Py_LT, PyCmp_LE=Py_LE, PyCmp_EQ=Py_EQ, PyCmp_NE=Py_NE,
Dobject.h581 #define Py_NE 3 macro
594 case Py_NE: if ((val1) != (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \
/external/python/cpython3/Modules/_sqlite/
Drow.c192 if (opid != Py_EQ && opid != Py_NE) in pysqlite_row_richcompare()
/external/python/cpython2/Objects/
Dcodeobject.c554 if ((op != Py_EQ && op != Py_NE) || in code_richcompare()
617 if (op == Py_NE) in code_richcompare()
Dmemoryobject.c725 if (op != Py_EQ && op != Py_NE) in memory_richcompare()
744 if ((equal && op == Py_EQ) || (!equal && op == Py_NE)) in memory_richcompare()
Dweakrefobject.c199 if ((op != Py_EQ && op != Py_NE) || Py_TYPE(self) != Py_TYPE(other)) { in weakref_richcompare()
206 if (op == Py_NE) in weakref_richcompare()
Dobject.c603 int _Py_SwappedOp[] = {Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE};
885 case Py_NE: c = c != 0; break; in convert_3way_to_object()
910 v->ob_type != w->ob_type && op != Py_EQ && op != Py_NE && in try_3way_to_rich_compare()
1005 else if (op == Py_NE) in PyObject_RichCompareBool()
Dtupleobject.c611 case Py_NE: cmp = vlen != wlen; break; in tuplerichcompare()
629 if (op == Py_NE) { in tuplerichcompare()
Dmethodobject.c233 if (op != Py_EQ && op != Py_NE) { in meth_richcompare()
/external/python/cpython3/Python/
Dcontext.c468 (op != Py_EQ && op != Py_NE)) in context_tp_richcompare()
479 if (op == Py_NE) { in context_tp_richcompare()
/external/protobuf/python/google/protobuf/pyext/
Dextension_dict.cc326 if (opid != Py_EQ && opid != Py_NE) { in RichCompare()
/external/python/cpython2/Doc/c-api/
Dobject.rst105 :const:`Py_NE`, :const:`Py_GT`, or :const:`Py_GE`, corresponding to ``<``,
115 :const:`Py_NE`, :const:`Py_GT`, or :const:`Py_GE`, corresponding to ``<``,
123 will always return ``1`` for :const:`Py_EQ` and ``0`` for :const:`Py_NE`.
/external/python/cpython3/Doc/c-api/
Dobject.rst143 :const:`Py_NE`, :const:`Py_GT`, or :const:`Py_GE`, corresponding to ``<``,
153 :const:`Py_NE`, :const:`Py_GT`, or :const:`Py_GE`, corresponding to ``<``,
161 will always return ``1`` for :const:`Py_EQ` and ``0`` for :const:`Py_NE`.
/external/python/cpython3/Modules/_decimal/
D_decimal.c624 if (op == Py_EQ || op == Py_NE) { in signaldict_richcompare()
626 res = (SdFlags(v)==SdFlags(w)) ^ (op==Py_NE) ? Py_True : Py_False; in signaldict_richcompare()
640 res = (SdFlags(v)==flags) ^ (op==Py_NE) ? Py_True : Py_False; in signaldict_richcompare()
2869 if (op != Py_EQ && op != Py_NE && in convert_op_cmp()
2878 else if (PyComplex_Check(w) && (op == Py_EQ || op == Py_NE)) { in convert_op_cmp()
4274 if (a_issnan || b_issnan || (op != Py_EQ && op != Py_NE)) { in dec_richcompare()
4281 return (op == Py_NE) ? incr_true() : incr_false(); in dec_richcompare()
4288 case Py_NE: in dec_richcompare()

1234