Home
last modified time | relevance | path

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

12

/external/python/cpython2/Include/
Dsetobject.h74 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type) || \
75 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
78 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type))
81 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
Dobject.h437 PyAPI_FUNC(int) PyType_IsSubtype(PyTypeObject *, PyTypeObject *);
439 (Py_TYPE(ob) == (tp) || PyType_IsSubtype(Py_TYPE(ob), (tp)))
/external/python/cpython3/Include/
Dsetobject.h96 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type) || \
97 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
100 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type))
103 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
Dobject.h485 PyAPI_FUNC(int) PyType_IsSubtype(PyTypeObject *, PyTypeObject *);
487 (Py_TYPE(ob) == (tp) || PyType_IsSubtype(Py_TYPE(ob), (tp)))
/external/python/cpython2/Objects/
Dtypeobject.c151 !PyType_IsSubtype(type, cls)) { in type_mro_modified()
481 if (PyType_IsSubtype((PyTypeObject*)ob, type)) { in type_set_bases()
760 if (!PyType_IsSubtype(obj->ob_type, type)) in type_call()
1166 PyType_IsSubtype(PyTypeObject *a, PyTypeObject *b) in PyType_IsSubtype() function
1699 if (!PyType_IsSubtype(solid, solid_base(t))) { in mro_internal()
1762 else if (PyType_IsSubtype(winner, candidate)) in best_base()
1764 else if (PyType_IsSubtype(candidate, winner)) { in best_base()
2147 if (PyType_IsSubtype(winner, tmptype)) in type_new()
2149 if (PyType_IsSubtype(tmptype, winner)) { in type_new()
3889 if (PyType_IsSubtype(base, (PyTypeObject*)PyExc_BaseException))
[all …]
Ddescrobject.c106 if (!PyType_IsSubtype((PyTypeObject *)type, descr->d_type)) { in classmethod_get()
280 if (!PyType_IsSubtype((PyTypeObject *)self, descr->d_type)) { in classmethoddescr_call()
Dabstract.c938 if (slotw && PyType_IsSubtype(w->ob_type, v->ob_type)) {
1058 if (slotw && PyType_IsSubtype(w->ob_type, v->ob_type)) {
2910 retval = PyType_IsSubtype(
2996 return PyType_IsSubtype(
Dtupleobject.c664 assert(PyType_IsSubtype(type, &PyTuple_Type)); in tuple_subtype_new()
Dsetobject.c1141 if (PyType_IsSubtype(Py_TYPE(a), &PyFrozenSet_Type) && in set_swap_bodies()
1142 PyType_IsSubtype(Py_TYPE(b), &PyFrozenSet_Type)) { in set_swap_bodies()
Dintobject.c1123 assert(PyType_IsSubtype(type, &PyInt_Type)); in int_subtype_new()
/external/python/cpython3/Objects/
Dtypeobject.c304 !PyType_IsSubtype(type, cls)) { in type_mro_modified()
693 if (PyType_IsSubtype(base, type) || in type_set_bases()
944 if (!PyType_IsSubtype(Py_TYPE(obj), type)) in type_call()
1387 PyType_IsSubtype(PyTypeObject *a, PyTypeObject *b) in PyType_IsSubtype() function
1879 if (!PyType_IsSubtype(solid, solid_base(base))) { in mro_check()
2042 else if (PyType_IsSubtype(winner, candidate)) in best_base()
2044 else if (PyType_IsSubtype(candidate, winner)) { in best_base()
2331 if (PyType_IsSubtype(winner, tmptype)) in _PyType_CalculateMetaclass()
2333 if (PyType_IsSubtype(tmptype, winner)) { in _PyType_CalculateMetaclass()
3991 if (!(PyType_IsSubtype(newto, &PyModule_Type) && in object_set_class()
[all …]
Dabstract.c800 if (slotw && PyType_IsSubtype(w->ob_type, v->ob_type)) { in binary_op1()
891 if (slotw && PyType_IsSubtype(w->ob_type, v->ob_type)) { in ternary_op()
2346 retval = PyType_IsSubtype( in recursive_isinstance()
2433 return PyType_IsSubtype((PyTypeObject *)derived, (PyTypeObject *)cls); in recursive_issubclass()
Ddescrobject.c116 if (!PyType_IsSubtype((PyTypeObject *)type, PyDescr_TYPE(descr))) { in classmethod_get()
322 if (!PyType_IsSubtype((PyTypeObject *)self, PyDescr_TYPE(descr))) { in classmethoddescr_call()
Dsetobject.c1077 if (PyType_IsSubtype(type, &PySet_Type)) in make_new_set_basetype()
1163 if (PyType_IsSubtype(Py_TYPE(a), &PyFrozenSet_Type) && in set_swap_bodies()
1164 PyType_IsSubtype(Py_TYPE(b), &PyFrozenSet_Type)) { in set_swap_bodies()
Dtupleobject.c693 assert(PyType_IsSubtype(type, &PyTuple_Type)); in tuple_subtype_new()
Dfloatobject.c1641 assert(PyType_IsSubtype(type, &PyFloat_Type)); in float_subtype_new()
/external/python/cpython3/Modules/_sqlite/
Drow.c200 if (PyType_IsSubtype(Py_TYPE(_other), &pysqlite_RowType)) { in pysqlite_row_richcompare()
/external/python/cpython2/Doc/c-api/
Dtype.rst68 .. c:function:: int PyType_IsSubtype(PyTypeObject *a, PyTypeObject *b)
/external/python/cpython2/Modules/_sqlite/
Drow.c202 if (PyType_IsSubtype(Py_TYPE(_other), &pysqlite_RowType)) { in pysqlite_row_richcompare()
/external/python/cpython3/Doc/c-api/
Dtype.rst70 .. c:function:: int PyType_IsSubtype(PyTypeObject *a, PyTypeObject *b)
/external/python/cpython3/PC/
Dpython3.def599 PyType_IsSubtype=python37.PyType_IsSubtype
/external/python/cpython2/PC/os2emx/
Dpython27.def576 "PyType_IsSubtype"
/external/python/cpython3/Python/
Derrors.c208 return PyType_IsSubtype((PyTypeObject *)err, (PyTypeObject *)exc); in PyErr_GivenExceptionMatches()
/external/python/cpython3/Doc/data/
Drefcounts.dat2300 PyType_IsSubtype:int:::
2301 PyType_IsSubtype:PyTypeObject*:a:0:
2302 PyType_IsSubtype:PyTypeObject*:b:0:
/external/python/cpython2/Python/
Dgetargs.c1258 if (PyType_IsSubtype(arg->ob_type, type)) in convertsimple()

12