Home
last modified time | relevance | path

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

123

/external/python/cpython3/Modules/_sqlite/
Drow.c197 if (opid != Py_EQ && opid != Py_NE) in pysqlite_row_richcompare()
204 || (opid == Py_NE && res == Py_False)) { in pysqlite_row_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.h138 enum cmp_op {PyCmp_LT=Py_LT, PyCmp_LE=Py_LE, PyCmp_EQ=Py_EQ, PyCmp_NE=Py_NE,
Dobject.h941 #define Py_NE 3 macro
954 case Py_NE: if ((val1) != (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \
/external/python/cpython3/Objects/
Dclassobject.c215 if ((op != Py_EQ && op != Py_NE) || in method_richcompare()
512 if ((op != Py_EQ && op != Py_NE) || in instancemethod_richcompare()
Dmethodobject.c228 if ((op != Py_EQ && op != Py_NE) || in meth_richcompare()
Dweakrefobject.c195 if ((op != Py_EQ && op != Py_NE) || in weakref_richcompare()
203 if (op == Py_NE) in weakref_richcompare()
Dcodeobject.c629 if ((op != Py_EQ && op != Py_NE) || in code_richcompare()
685 if (op == Py_NE) in code_richcompare()
Drangeobject.c440 case Py_NE: in range_richcompare()
445 if (op == Py_NE) in range_richcompare()
Dobject.c674 int _Py_SwappedOp[] = {Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE};
714 case Py_NE: in do_richcompare()
763 else if (op == Py_NE) in PyObject_RichCompareBool()
Dbytesobject.c1579 if (Py_BytesWarningFlag && (op == Py_EQ || op == Py_NE)) { in bytes_richcompare()
1617 case Py_NE: in bytes_richcompare()
1627 else if (op == Py_EQ || op == Py_NE) { in bytes_richcompare()
1629 eq ^= (op == Py_NE); in bytes_richcompare()
Dbytearrayobject.c1025 if (Py_BytesWarningFlag && (op == Py_EQ || op == Py_NE)) { in bytearray_richcompare()
1047 if (self_size != other_size && (op == Py_EQ || op == Py_NE)) { in bytearray_richcompare()
1051 return PyBool_FromLong((op == Py_NE)); in bytearray_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()
Dbytesobject.c1574 if (Py_BytesWarningFlag && (op == Py_EQ || op == Py_NE)) { in bytes_richcompare()
1612 case Py_NE: in bytes_richcompare()
1622 else if (op == Py_EQ || op == Py_NE) { in bytes_richcompare()
1624 eq ^= (op == Py_NE); in bytes_richcompare()
/external/python/cpython3/Python/
Dcontext.c467 (op != Py_EQ && op != Py_NE)) in context_tp_richcompare()
478 if (op == Py_NE) { in context_tp_richcompare()
/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/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/Modules/
Darraymodule.c680 if (Py_SIZE(va) != Py_SIZE(wa) && (op == Py_EQ || op == Py_NE)) { in array_richcompare()
704 case Py_NE: cmp = result != 0; break; in array_richcompare()
746 case Py_NE: assert(vs == ws); cmp = 0; break; in array_richcompare()
764 else if (op == Py_NE) { in array_richcompare()
/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()

123