Home
last modified time | relevance | path

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

12

/external/python/cpython2/Objects/
Dtypeobject.c143 if (!PyType_Check(b) ) { in type_mro_modified()
201 assert(PyType_Check(b)); in assign_version_tag()
418 assert(PyType_Check(subclass)); in mro_subclasses()
473 if (!PyClass_Check(ob) && !PyType_Check(ob)) { in type_set_bases()
480 if (PyType_Check(ob)) { in type_set_bases()
545 if (PyType_Check(ob)) { in type_set_bases()
553 if (PyType_Check(ob)) { in type_set_bases()
660 if (!PyType_Check(v) || !PyType_Check(w) || in type_richcompare()
1603 if (PyType_Check(base)) in mro_implementation()
1691 else if (!PyType_Check(cls)) { in mro_internal()
[all …]
Ddescrobject.c97 if (!PyType_Check(type)) { in classmethod_get()
272 if (!PyType_Check(self)) { in classmethoddescr_call()
Dabstract.c2900 else if (PyType_Check(cls)) {
2909 PyType_Check(c))
2994 if (PyType_Check(cls) && PyType_Check(derived)) {
Dobject.c1384 assert(PyType_Check(base)); in _PyObject_GenericGetAttrWithDict()
1942 else if (PyType_Check(obj) || PyClass_Check(obj)) in _dir_object()
/external/python/cpython3/Objects/
Dtypeobject.c300 assert(PyType_Check(b)); in type_mro_modified()
354 assert(PyType_Check(b)); in assign_version_tag()
685 if (!PyType_Check(ob)) { in type_set_bases()
1870 if (!PyType_Check(tmp)) { in mro_check()
2020 if (!PyType_Check(base_proto)) { in best_base()
2406 if (PyType_Check(tmp)) { in type_new()
2566 assert(PyType_Check(tmp)); in type_new()
3054 assert(PyType_Check(base)); in find_name_in_mro()
3935 if (!PyType_Check(value)) { in object_set_class()
4062 assert(PyType_Check(cls)); in _PyType_GetSlotNames()
[all …]
Dmethodobject.c155 type = PyType_Check(m->m_self) ? m->m_self : (PyObject*)Py_TYPE(m->m_self); in meth_get__qualname__()
Dabstract.c174 if (PyType_Check(o)) { in PyObject_GetItem()
2340 if (PyType_Check(cls)) { in recursive_isinstance()
2345 if (icls != (PyObject *)(inst->ob_type) && PyType_Check(icls)) { in recursive_isinstance()
2431 if (PyType_Check(cls) && PyType_Check(derived)) { in recursive_issubclass()
Ddescrobject.c107 if (!PyType_Check(type)) { in classmethod_get()
313 if (!PyType_Check(self)) { in classmethoddescr_call()
/external/python/cpython2/Doc/c-api/
Dtype.rst24 .. c:function:: int PyType_Check(PyObject *o)
/external/python/cpython3/Modules/
D_abc.c426 if (!PyType_Check(subclass)) { in _abc__abc_register_impl()
571 if (!PyType_Check(subclass)) { in _abc__abc_subclasscheck_impl()
D_pickle.c3741 if (!PyType_Check(cls)) { in save_reduce()
3829 if (!PyType_Check(cls)) { in save_reduce()
5337 if (!PyTuple_GET_SIZE(args) && PyType_Check(cls)) { in instantiate()
5461 if (!PyType_Check(cls)) { in load_newobj()
5511 if (!PyType_Check(cls)) { in load_newobj_ex()
/external/python/cpython3/Doc/c-api/
Dtype.rst22 .. c:function:: int PyType_Check(PyObject *o)
/external/python/cpython2/Include/
Dpyerrors.h99 (PyClass_Check((x)) || (PyType_Check((x)) && \
Dobject.h445 #define PyType_Check(op) \ macro
/external/python/cpython3/Include/
Dpyerrors.h137 (PyType_Check((x)) && \
Dobject.h495 #define PyType_Check(op) \ macro
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c929 if (!proto || !PyType_Check(proto)) { in PyCPointerType_SetProto()
2799 assert(PyType_Check(type)); in PyCData_FromBaseObj()
2841 assert(PyType_Check(type)); in PyCData_AtAddress()
2909 assert(PyType_Check(type)); in _PyCData_set()
3237 PyType_Check(arg) ? in _check_outarg_type()
4645 if (!PyType_Check(itemtype)) { in PyCArrayType_from_ctype()
5346 PyType_Check(arg) in cast_check_pointertype()
Dstgdict.c177 if (!PyType_Check(obj)) in PyType_stgdict()
Dcallproc.c1731 } else if (PyType_Check(cls)) { in POINTER()
/external/python/cpython2/Modules/_ctypes/
Dstgdict.c157 if (!PyType_Check(obj)) in PyType_stgdict()
D_ctypes.c972 if (!proto || !PyType_Check(proto)) { in PyCPointerType_SetProto()
2913 assert(PyType_Check(type)); in PyCData_FromBaseObj()
2955 assert(PyType_Check(type)); in PyCData_AtAddress()
3023 assert(PyType_Check(type)); in _PyCData_set()
3348 PyType_Check(arg) ? in _check_outarg_type()
4842 if (!PyType_Check(itemtype)) { in PyCArrayType_from_ctype()
5599 PyType_Check(arg) in cast_check_pointertype()
/external/python/cpython3/Python/
Dbltinmodule.c64 if (PyType_Check(base)) { in update_bases()
183 isclass = PyType_Check(meta); in builtin___build_class__()
254 if (cls != NULL && PyType_Check(cls) && PyCell_Check(cell)) { in builtin___build_class__()
/external/tensorflow/tensorflow/python/util/
Dutil.cc45 if (!PyType_Check(type)) { in RegisterType()
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc877 if (!PyType_Check(base_class)) { in TFE_Py_InitEagerTensor()
/external/python/cpython2/Python/
Dceval.c4577 else if (PyType_Check(func)) in do_call()
4674 else if (PyType_Check(func)) in ext_do_call()
4816 (PyType_Check((x)) && \

12