Home
last modified time | relevance | path

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

/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/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()
2144 if (PyType_IsSubtype(winner, tmptype)) in type_new()
2146 if (PyType_IsSubtype(tmptype, winner)) { in type_new()
3826 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)) {
2913 retval = PyType_IsSubtype(
2999 return PyType_IsSubtype(
Dtupleobject.c667 assert(PyType_IsSubtype(type, &PyTuple_Type)); in tuple_subtype_new()
Dsetobject.c1138 if (PyType_IsSubtype(Py_TYPE(a), &PyFrozenSet_Type) && in set_swap_bodies()
1139 PyType_IsSubtype(Py_TYPE(b), &PyFrozenSet_Type)) { in set_swap_bodies()
Dintobject.c1120 assert(PyType_IsSubtype(type, &PyInt_Type)); in int_subtype_new()
Dfloatobject.c1838 assert(PyType_IsSubtype(type, &PyFloat_Type)); in float_subtype_new()
Dobject.c614 PyType_IsSubtype(w->ob_type, v->ob_type) && in try_rich_compare()
Dlongobject.c4073 assert(PyType_IsSubtype(type, &PyLong_Type)); in long_subtype_new()
Dstringobject.c3718 assert(PyType_IsSubtype(type, &PyString_Type)); in str_subtype_new()
Dunicodeobject.c8857 assert(PyType_IsSubtype(type, &PyUnicode_Type)); in unicode_subtype_new()
/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/cpython2/PC/os2emx/
Dpython27.def576 "PyType_IsSubtype"
/external/python/cpython2/Python/
Dgetargs.c1258 if (PyType_IsSubtype(arg->ob_type, type)) in convertsimple()
/external/python/cpython2/Modules/
DcPickle.c2766 if (PyType_IsSubtype(type, &PyType_Type)) { in save()