Home
last modified time | relevance | path

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

/third_party/python/Include/
Dsetobject.h93 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
99 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type) || \
100 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
105 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type))
Dobject.h244 PyAPI_FUNC(int) PyType_IsSubtype(PyTypeObject *, PyTypeObject *);
247 return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); in _PyObject_TypeCheck()
/third_party/python/Objects/
Dtypeobject.c397 if (!PyType_IsSubtype(type, cls)) { in type_mro_modified()
790 if (PyType_IsSubtype(base, type) || in type_set_bases()
1128 if (!PyType_IsSubtype(Py_TYPE(obj), type)) in type_call()
1526 PyType_IsSubtype(PyTypeObject *a, PyTypeObject *b) in PyType_IsSubtype() function
2027 if (!PyType_IsSubtype(solid, solid_base(base))) { in mro_check()
2196 else if (PyType_IsSubtype(winner, candidate)) in best_base()
2198 else if (PyType_IsSubtype(candidate, winner)) { in best_base()
2487 if (PyType_IsSubtype(winner, tmptype)) in _PyType_CalculateMetaclass()
2489 if (PyType_IsSubtype(tmptype, winner)) { in _PyType_CalculateMetaclass()
4769 if (!(PyType_IsSubtype(newto, &PyModule_Type) && in object_set_class()
[all …]
Dabstract.c884 if (slotw && PyType_IsSubtype(Py_TYPE(w), Py_TYPE(v))) { in binary_op1()
992 if (slotw && PyType_IsSubtype(Py_TYPE(w), Py_TYPE(v))) { in ternary_op()
2606 retval = PyType_IsSubtype( in object_isinstance()
2707 return PyType_IsSubtype((PyTypeObject *)derived, (PyTypeObject *)cls); in recursive_issubclass()
Dsetobject.c984 if (PyType_IsSubtype(type, &PySet_Type)) in make_new_set_basetype()
1083 if (PyType_IsSubtype(Py_TYPE(a), &PyFrozenSet_Type) && in set_swap_bodies()
1084 PyType_IsSubtype(Py_TYPE(b), &PyFrozenSet_Type)) { in set_swap_bodies()
Dtupleobject.c785 assert(PyType_IsSubtype(type, &PyTuple_Type)); in tuple_subtype_new()
Dfloatobject.c1646 assert(PyType_IsSubtype(type, &PyFloat_Type)); in float_subtype_new()
Ddescrobject.c115 if (!PyType_IsSubtype((PyTypeObject *)type, PyDescr_TYPE(descr))) { in classmethod_get()
Dobject.c684 PyType_IsSubtype(Py_TYPE(w), Py_TYPE(v)) && in do_richcompare()
Dbytesobject.c2866 assert(PyType_IsSubtype(type, &PyBytes_Type)); in bytes_subtype_new()
Dlongobject.c5014 assert(PyType_IsSubtype(type, &PyLong_Type)); in long_subtype_new()
Dunicodeobject.c15640 assert(PyType_IsSubtype(type, &PyUnicode_Type)); in unicode_subtype_new()
/third_party/python/Doc/c-api/
Dtype.rst72 .. c:function:: int PyType_IsSubtype(PyTypeObject *a, PyTypeObject *b)
/third_party/python/Doc/data/
Dstable_abi.dat647 function,PyType_IsSubtype,3.2,
Drefcounts.dat2321 PyType_IsSubtype:int:::
2322 PyType_IsSubtype:PyTypeObject*:a:0:
2323 PyType_IsSubtype:PyTypeObject*:b:0:
/third_party/python/PC/
Dpython3dll.c600 EXPORT_FUNC(PyType_IsSubtype)
/third_party/python/Python/
Derrors.c283 return PyType_IsSubtype((PyTypeObject *)err, (PyTypeObject *)exc); in PyErr_GivenExceptionMatches()
Dimport.c1278 if (PyType_IsSubtype((PyTypeObject *) exception, in remove_importlib_frames()
Dgetargs.c1265 if (PyType_IsSubtype(Py_TYPE(arg), type)) in convertsimple()
/third_party/python/Misc/
Dstable_abi.txt1288 function PyType_IsSubtype
/third_party/python/Modules/
Darraymodule.c1995 if (!PyType_IsSubtype(arraytype, state->ArrayType)) { in array__array_reconstructor_impl()
D_pickle.c4407 else if (PyType_IsSubtype(type, &PyType_Type)) { in save()
/third_party/flutter/skia/third_party/externals/libwebp/swig/
Dlibwebp_python_wrap.c1657 if (PyType_IsSubtype(op->ob_type, target_tp)) in SwigPyObject_Check()
/third_party/skia/third_party/externals/libwebp/swig/
Dlibwebp_python_wrap.c1670 if (PyType_IsSubtype(op->ob_type, target_tp)) in SwigPyObject_Check()
/third_party/python/Modules/_decimal/
D_decimal.c2247 assert(PyType_IsSubtype(type, &PyDec_Type)); in PyDecType_FromFloatExact()