Searched refs:PyBool_Check (Results 1 – 25 of 27) sorted by relevance
12
63 if (!PyBool_Check(a) || !PyBool_Check(b)) in bool_and()71 if (!PyBool_Check(a) || !PyBool_Check(b)) in bool_or()79 if (!PyBool_Check(a) || !PyBool_Check(b)) in bool_xor()
384 if (PyLong_CheckExact(ob) || PyBool_Check(ob)) in range_contains()515 if (PyLong_CheckExact(ob) || PyBool_Check(ob)) { in range_count()534 if (!PyLong_CheckExact(ob) && !PyBool_Check(ob)) { in range_index()
506 || PyBool_Check(op) in _PyCode_ConstantKey()
770 if (PyBool_Check(res)) in PyObject_RichCompareBool()
2011 if (PyBool_Check(res_obj)) { in unsafe_object_compare()
6237 else if (PyBool_Check(value)) { in slot_nb_bool()
72 if (!PyBool_Check(a) || !PyBool_Check(b)) in bool_and()81 if (!PyBool_Check(a) || !PyBool_Check(b)) in bool_or()90 if (!PyBool_Check(a) || !PyBool_Check(b)) in bool_xor()
427 || PyBool_Check(op) in _PyCode_ConstantKey()
1012 if (PyBool_Check(res)) in PyObject_RichCompareBool()
12 #define PyBool_Check(x) (Py_TYPE(x) == &PyBool_Type) macro
14 #define PyBool_Check(x) (Py_TYPE(x) == &PyBool_Type) macro
14 .. c:function:: int PyBool_Check(PyObject *o)
127 PyFloat_CheckExact(text) || PyBool_Check(text) || in escape()
128 if (!PyBool_Check(v)) { in PyMember_SetOne()
144 || PyBool_Check(value) in validate_constant()
613 #ifdef PyBool_Check in libxml_xmlXPathObjectPtrConvert()614 } else if PyBool_Check (obj) { in libxml_xmlXPathObjectPtrConvert()
200 if (!PyBool_Check(v)) { in PyMember_SetOne()
254 if (PyBool_Check(src)) { in PyCF_Python2CF_simple()
184 } else if (PyBool_Check(obj) || PyIsInstance(obj, &PyBoolArrType_Type)) { in InferShapeAndType()
637 if (!PyBool_Check(attr)) { in HandleBoolAttribute()
45 #ifndef PyBool_Check46 #define PyBool_Check(o) 0 macro1096 if (PyBool_Check(value)) in AsObj()
623 if (!PyInt_Check(arg) && !PyBool_Check(arg) && !PyLong_Check(arg)) { in CheckAndGetInteger()1907 if (!arg || !PyBool_Check(arg)) { in CheckAndGetInteger()
40 PyBool_Check:int:::41 PyBool_Check:PyObject*:o:0:
990 if (PyBool_Check(value)) in AsObj()