Home
last modified time | relevance | path

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

12

/third_party/python/Objects/
Dinterpreteridobject.c176 if (op != Py_EQ && op != Py_NE) { in interpid_richcompare()
212 if ((op == Py_EQ && equal) || (op == Py_NE && !equal)) { in interpid_richcompare()
Dclassobject.c252 if ((op != Py_EQ && op != Py_NE) || in method_richcompare()
486 if ((op != Py_EQ && op != Py_NE) || in instancemethod_richcompare()
Dgenericaliasobject.c433 (op != Py_EQ && op != Py_NE)) in ga_richcompare()
438 if (op == Py_NE) { in ga_richcompare()
Dobject.c599 ret = PyObject_RichCompareBool(module, builtinsname, Py_NE); in _PyObject_FunctionStr()
650 int _Py_SwappedOp[] = {Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE};
690 case Py_NE: in do_richcompare()
741 else if (op == Py_NE) in PyObject_RichCompareBool()
Dweakrefobject.c204 if ((op != Py_EQ && op != Py_NE) || in weakref_richcompare()
212 if (op == Py_NE) in weakref_richcompare()
Dcodeobject.c836 if ((op != Py_EQ && op != Py_NE) || in code_richcompare()
894 if (op == Py_NE) in code_richcompare()
Drangeobject.c472 case Py_NE: in range_richcompare()
477 if (op == Py_NE) in range_richcompare()
Dmethodobject.c301 if ((op != Py_EQ && op != Py_NE) || in meth_richcompare()
Dbytesobject.c1501 if (_Py_GetConfig()->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytes_richcompare()
1538 case Py_NE: in bytes_richcompare()
1547 else if (op == Py_EQ || op == Py_NE) { in bytes_richcompare()
1549 eq ^= (op == Py_NE); in bytes_richcompare()
Dbytearrayobject.c1024 if (_Py_GetConfig()->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytearray_richcompare()
1046 if (self_size != other_size && (op == Py_EQ || op == Py_NE)) { in bytearray_richcompare()
1050 return PyBool_FromLong((op == Py_NE)); in bytearray_richcompare()
Dodictobject.c1533 if (op == Py_EQ || op == Py_NE) { in odict_richcompare()
1544 if (op == Py_NE && cmp == Py_True) in odict_richcompare()
Dtupleobject.c673 if (op == Py_NE) { in tuplerichcompare()
Dcomplexobject.c620 if (op != Py_EQ && op != Py_NE) { in complex_richcompare()
/third_party/boost/libs/python/src/
Dobject_operators.cpp25 BOOST_PYTHON_COMPARE_OP(!=, Py_NE)
/third_party/python/Include/
Dobject.h537 #define Py_NE 3 macro
550 case Py_NE: if ((val1) != (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \
/third_party/python/Modules/_sqlite/
Drow.c192 if (opid != Py_EQ && opid != Py_NE) in pysqlite_row_richcompare()
/third_party/python/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`.
/third_party/protobuf/python/google/protobuf/pyext/
Dextension_dict.cc330 if (opid != Py_EQ && opid != Py_NE) { in RichCompare()
Drepeated_composite_container.cc337 if (opid == Py_EQ || opid == Py_NE) { in Subscript()
Ddescriptor_containers.cc424 if (opid != Py_EQ && opid != Py_NE) { in RichCompare()
439 if (result ^ (opid == Py_NE)) { in RichCompare()
Drepeated_scalar_container.cc564 if (opid != Py_EQ && opid != Py_NE) { in Subscript()
/third_party/python/Python/
Dcontext.c481 (op != Py_EQ && op != Py_NE)) in context_tp_richcompare()
492 if (op == Py_NE) { in context_tp_richcompare()
/third_party/python/Modules/
Darraymodule.c685 if (Py_SIZE(va) != Py_SIZE(wa) && (op == Py_EQ || op == Py_NE)) { in array_richcompare()
709 case Py_NE: cmp = result != 0; break; in array_richcompare()
751 case Py_NE: assert(vs == ws); cmp = 0; break; in array_richcompare()
769 else if (op == Py_NE) { in array_richcompare()
D_datetimemodule.c3883 if (op != Py_EQ && op != Py_NE) in timezone_richcompare()
4474 else if (op == Py_NE) { in time_richcompare()
5710 if (op == Py_NE) in datetime_richcompare()
5739 if ((op == Py_EQ || op == Py_NE) && diff == 0) { in datetime_richcompare()
5761 if ((op == Py_EQ || op == Py_NE) && diff == 0) { in datetime_richcompare()
5774 else if (op == Py_NE) { in datetime_richcompare()
/third_party/python/Modules/_decimal/
D_decimal.c634 if (op == Py_EQ || op == Py_NE) { in signaldict_richcompare()
636 res = (SdFlags(v)==SdFlags(w)) ^ (op==Py_NE) ? Py_True : Py_False; in signaldict_richcompare()
650 res = (SdFlags(v)==flags) ^ (op==Py_NE) ? Py_True : Py_False; in signaldict_richcompare()
3014 if (op != Py_EQ && op != Py_NE && in convert_op_cmp()
3023 else if (PyComplex_Check(w) && (op == Py_EQ || op == Py_NE)) { in convert_op_cmp()
4419 if (a_issnan || b_issnan || (op != Py_EQ && op != Py_NE)) { in dec_richcompare()
4426 return (op == Py_NE) ? incr_true() : incr_false(); in dec_richcompare()
4433 case Py_NE: in dec_richcompare()

12