Home
last modified time | relevance | path

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

12

/third_party/python/Objects/
Dinterpreteridobject.c182 if (op != Py_EQ && op != Py_NE) { in interpid_richcompare()
218 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.c447 (op != Py_EQ && op != Py_NE)) in ga_richcompare()
452 if (op == Py_NE) { in ga_richcompare()
Dobject.c619 ret = PyObject_RichCompareBool(module, builtinsname, Py_NE); in _PyObject_FunctionStr()
670 int _Py_SwappedOp[] = {Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE};
710 case Py_NE: in do_richcompare()
761 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()
Drangeobject.c486 case Py_NE: in range_richcompare()
491 if (op == Py_NE) in range_richcompare()
Dunionobject.c121 if (!_PyUnion_Check(b) || (op != Py_EQ && op != Py_NE)) { in union_richcompare()
Dbytesobject.c1532 if (_Py_GetConfig()->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytes_richcompare()
1553 case Py_NE: in bytes_richcompare()
1562 else if (op == Py_EQ || op == Py_NE) { in bytes_richcompare()
1564 eq ^= (op == Py_NE); in bytes_richcompare()
Dbytearrayobject.c1013 if (_Py_GetConfig()->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytearray_richcompare()
1036 if (self_size != other_size && (op == Py_EQ || op == Py_NE)) { in bytearray_richcompare()
1040 return PyBool_FromLong((op == Py_NE)); in bytearray_richcompare()
Dmethodobject.c305 if ((op != Py_EQ && op != Py_NE) || in meth_richcompare()
Dcodeobject.c921 if ((op != Py_EQ && op != Py_NE) || in code_richcompare()
979 if (op == Py_NE) in code_richcompare()
Dodictobject.c1531 if (op == Py_EQ || op == Py_NE) { in odict_richcompare()
1542 if (op == Py_NE && cmp == Py_True) in odict_richcompare()
Dcomplexobject.c590 if (op != Py_EQ && op != Py_NE) { in complex_richcompare()
/third_party/python/Modules/_ssl/
Dcert.c203 if ((op != Py_EQ) && (op != Py_NE)) { in certificate_richcompare()
207 if (((op == Py_EQ) && (cmp == 0)) || ((op == Py_NE) && (cmp != 0))) { in certificate_richcompare()
/third_party/python/Include/
Dobject.h629 #define Py_NE 3 macro
651 case Py_NE: if ((val1) != (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \
/third_party/python/Modules/_sqlite/
Drow.c216 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.c497 (op != Py_EQ && op != Py_NE)) in context_tp_richcompare()
508 if (op == Py_NE) { in context_tp_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()
3013 if (op != Py_EQ && op != Py_NE && in convert_op_cmp()
3022 else if (PyComplex_Check(w) && (op == Py_EQ || op == Py_NE)) { in convert_op_cmp()
4431 if (a_issnan || b_issnan || (op != Py_EQ && op != Py_NE)) { in dec_richcompare()
4438 return (op == Py_NE) ? incr_true() : incr_false(); in dec_richcompare()
4445 case Py_NE: in dec_richcompare()
/third_party/python/Modules/
Darraymodule.c701 if (Py_SIZE(va) != Py_SIZE(wa) && (op == Py_EQ || op == Py_NE)) { in array_richcompare()
725 case Py_NE: cmp = result != 0; break; in array_richcompare()
767 case Py_NE: assert(vs == ws); cmp = 0; break; in array_richcompare()
785 else if (op == Py_NE) { in array_richcompare()
D_datetimemodule.c3874 if (op != Py_EQ && op != Py_NE) in timezone_richcompare()
4465 else if (op == Py_NE) { in time_richcompare()
5701 if (op == Py_NE) in datetime_richcompare()
5730 if ((op == Py_EQ || op == Py_NE) && diff == 0) { in datetime_richcompare()
5752 if ((op == Py_EQ || op == Py_NE) && diff == 0) { in datetime_richcompare()
5765 else if (op == Py_NE) { in datetime_richcompare()

12