Home
last modified time | relevance | path

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

12

/external/python/cpython3/Include/
Dsetobject.h26 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
32 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type) || \
33 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
38 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type))
Dobject.h539 PyAPI_FUNC(int) PyType_IsSubtype(PyTypeObject *, PyTypeObject *);
542 return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); in PyObject_TypeCheck()
/external/pytorch/torch/csrc/
Dcopy_utils.h27 PyType_IsSubtype(Py_TYPE(src), i.srcType)) { in tryTHPCopy()
DStorage.cpp41 PyType_IsSubtype(type, &THPStorageType), in THPStorage_NewWithStorage()
58 obj_type == type || PyType_IsSubtype(obj_type, type), in THPStorage_NewWithStorage()
/external/python/cpython3/Objects/
Dabstract.c954 if (slotw && PyType_IsSubtype(Py_TYPE(w), Py_TYPE(v))) { in binary_op1()
1062 if (slotw && PyType_IsSubtype(Py_TYPE(w), Py_TYPE(v))) { in ternary_op()
2648 retval = PyType_IsSubtype( in object_isinstance()
2751 return PyType_IsSubtype((PyTypeObject *)derived, (PyTypeObject *)cls); in recursive_issubclass()
Dsetobject.c1092 if (PyType_IsSubtype(type, &PySet_Type)) in make_new_set_basetype()
1194 if (PyType_IsSubtype(Py_TYPE(a), &PyFrozenSet_Type) && in set_swap_bodies()
1195 PyType_IsSubtype(Py_TYPE(b), &PyFrozenSet_Type)) { in set_swap_bodies()
Dtypeobject.c2477 PyType_IsSubtype(PyTypeObject *a, PyTypeObject *b) in PyType_IsSubtype() function
3157 else if (PyType_IsSubtype(winner, candidate)) in best_base()
3159 else if (PyType_IsSubtype(candidate, winner)) { in best_base()
3438 if (PyType_IsSubtype(winner, tmptype)) in _PyType_CalculateMetaclass()
3440 if (PyType_IsSubtype(tmptype, winner)) { in _PyType_CalculateMetaclass()
6433 if (!(PyType_IsSubtype(newto, &PyModule_Type) && in object_set_class_world_stopped()
6434 PyType_IsSubtype(oldto, &PyModule_Type)) && in object_set_class_world_stopped()
9039 if (!PyType_IsSubtype(subtype, type)) { in tp_new_wrapper()
9167 if (do_other && PyType_IsSubtype(Py_TYPE(other), Py_TYPE(self))) { \
11223 if (PyType_Check(obj) && PyType_IsSubtype((PyTypeObject *)obj, type)) { in supercheck()
[all …]
Dtupleobject.c726 assert(PyType_IsSubtype(type, &PyTuple_Type)); in tuple_subtype_new()
Dobject.c971 PyType_IsSubtype(Py_TYPE(w), Py_TYPE(v)) && in do_richcompare()
1729 assert(!PyType_IsSubtype(tp, &PyType_Type)); in _PyObject_GenericSetAttrWithDict()
Dfloatobject.c1670 assert(PyType_IsSubtype(type, &PyFloat_Type)); in float_subtype_new()
Ddescrobject.c120 if (!PyType_IsSubtype((PyTypeObject *)type, PyDescr_TYPE(descr))) { in classmethod_get()
Dbytesobject.c2986 assert(PyType_IsSubtype(type, &PyBytes_Type)); in bytes_subtype_new()
Dlongobject.c5914 assert(PyType_IsSubtype(type, &PyLong_Type)); in long_subtype_new()
/external/python/cpython3/Modules/
D_abc.c785 if (PyType_IsSubtype((PyTypeObject *)subclass, (PyTypeObject *)self)) { in _abc__abc_subclasscheck_impl()
Darraymodule.c2066 if (!PyType_IsSubtype(arraytype, state->ArrayType)) { in array__array_reconstructor_impl()
/external/pytorch/torch/csrc/autograd/
Dpython_variable.cpp2012 PyType_IsSubtype(type, &THPVariableType), in THPVariable_NewWithVar()
2068 obj_type == type || PyType_IsSubtype(obj_type, type), in THPVariable_NewWithVar()
/external/python/cpython3/PC/
Dpython3dll.c654 EXPORT_FUNC(PyType_IsSubtype)
/external/python/cpython3/Doc/data/
Dstable_abi.dat694 func,PyType_IsSubtype,3.2,,
Drefcounts.dat2385 PyType_IsSubtype:int:::
2386 PyType_IsSubtype:PyTypeObject*:a:0:
2387 PyType_IsSubtype:PyTypeObject*:b:0:
/external/python/cpython3/Python/
Dpythonrun.c289 if (PyType_IsSubtype(Py_TYPE(exc), in PyRun_InteractiveOneObjectEx()
Derrors.c339 return PyType_IsSubtype((PyTypeObject *)err, (PyTypeObject *)exc); in PyErr_GivenExceptionMatches()
Dgetargs.c1146 if (PyType_IsSubtype(Py_TYPE(arg), type)) in convertsimple()
Dimport.c3449 if (PyType_IsSubtype(Py_TYPE(exc), (PyTypeObject *) PyExc_ImportError)) { in remove_importlib_frames()
/external/python/cpython3/Doc/c-api/
Dtype.rst139 .. c:function:: int PyType_IsSubtype(PyTypeObject *a, PyTypeObject *b)
/external/python/cpython3/Misc/
Dstable_abi.toml1397 [function.PyType_IsSubtype]

12