Home
last modified time | relevance | path

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

12

/third_party/python/Objects/
Dunionobject.c76 if (PyType_Check(arg)) { in union_instancecheck()
92 if (!PyType_Check(instance)) { in union_subclasscheck()
105 if (PyType_Check(arg)) { in union_subclasscheck()
233 PyType_Check(obj) || in is_unionable()
Dboolobject.c72 assert(PyType_Check(type)); in bool_vectorcall()
Dtypeobject.c161 CHECK(PyType_Check(type)); in _PyType_CheckConsistency()
394 assert(PyType_Check(b)); in type_mro_modified()
438 assert(PyType_Check(b)); in assign_version_tag()
782 if (!PyType_Check(ob)) { in type_set_bases()
2018 if (!PyType_Check(tmp)) { in mro_check()
2174 if (!PyType_Check(base_proto)) { in best_base()
2651 assert(PyType_Check(base)); in type_new_slots_bases()
3233 if (PyType_Check(base)) { in type_new_get_bases()
3658 assert(PyType_Check(type)); in PyType_GetModule()
3700 assert(PyType_Check(type)); in _PyType_GetModuleByDef()
[all …]
Denumobject.c333 assert(PyType_Check(type)); in reversed_vectorcall()
Dabstract.c178 if (PyType_Check(o)) { in PyObject_GetItem()
2600 if (PyType_Check(cls)) { in object_isinstance()
2605 if (icls != (PyObject *)(Py_TYPE(inst)) && PyType_Check(icls)) { in object_isinstance()
2705 if (PyType_Check(cls) && PyType_Check(derived)) { in recursive_issubclass()
Dmethodobject.c231 type = PyType_Check(m->m_self) ? m->m_self : (PyObject*)Py_TYPE(m->m_self); in meth_get__qualname__()
Ddescrobject.c106 if (!PyType_Check(type)) { in classmethod_get()
141 if (PyType_Check(type)) { in method_get()
Dsetobject.c955 assert(PyType_Check(type)); in make_new_set()
1963 assert(PyType_Check(type)); in set_vectorcall()
Dexceptions.c997 assert(PyType_Check(newtype)); in OSError_new()
Dlistobject.c2751 assert(PyType_Check(type)); in list_vectorcall()
/third_party/python/Modules/
D_abc.c456 if (PyType_Check(self)) { in _abc__abc_init()
504 if (PyType_Check(grandchild)) { in set_collection_flag_recursive()
524 if (!PyType_Check(subclass)) { in _abc__abc_register_impl()
561 if (PyType_Check(self)) { in _abc__abc_register_impl()
676 if (!PyType_Check(subclass)) { in _abc__abc_subclasscheck_impl()
D_testcapimodule.c3770 if (!PyType_Check(obj) || !PyType_HasFeature(tp, Py_TPFLAGS_HEAPTYPE)) { in with_tp_del()
3784 if (!PyType_Check(obj) || !PyType_HasFeature(tp, Py_TPFLAGS_HEAPTYPE)) { in without_gc()
3875 assert(PyType_Check(structseq_type)); in test_structseq_newtype_doesnt_leak()
3894 assert(PyType_Check(structseq_type)); in test_structseq_newtype_null_descr_doc()
D_pickle.c4038 if (!PyType_Check(cls)) { in save_reduce()
4126 if (!PyType_Check(cls)) { in save_reduce()
5812 if (!PyTuple_GET_SIZE(args) && PyType_Check(cls)) { in instantiate()
5947 if (!PyType_Check(cls)) { in load_newobj()
Darraymodule.c1989 if (!PyType_Check(arraytype)) { in array__array_reconstructor_impl()
/third_party/python/Include/
Dpyerrors.h53 (PyType_Check((x)) && \
Dobject.h739 #define PyType_Check(op) _PyType_Check(_PyObject_CAST(op)) macro
/third_party/python/Modules/_ctypes/
D_ctypes.c1022 if (!proto || !PyType_Check(proto)) { in PyCPointerType_SetProto()
2987 assert(PyType_Check(type)); in PyCData_FromBaseObj()
3033 assert(PyType_Check(type)); in PyCData_AtAddress()
3101 assert(PyType_Check(type)); in _PyCData_set()
3443 PyType_Check(arg) ? in _check_outarg_type()
4897 if (!PyType_Check(itemtype)) { in PyCArrayType_from_ctype()
5587 PyType_Check(arg) in cast_check_pointertype()
Dstgdict.c177 if (!PyType_Check(obj)) in PyType_stgdict()
Dcallproc.c1917 } else if (PyType_Check(cls)) { in POINTER()
/third_party/boost/libs/python/src/object/
Dfunction.cpp439 if (PyType_Check(ns)) in add_to_namespace()
/third_party/python/Python/
Dbltinmodule.c39 if (PyType_Check(base)) { in update_bases()
157 isclass = PyType_Check(meta); in builtin___build_class__()
225 if (cls != NULL && PyType_Check(cls) && PyCell_Check(cell)) { in builtin___build_class__()
Dpystate.c1755 if (!PyType_Check(cls)) { in _PyCrossInterpreterData_RegisterClass()
/third_party/python/Doc/c-api/
Dtype.rst22 .. c:function:: int PyType_Check(PyObject *o)
/third_party/python/Misc/NEWS.d/
D3.9.0a4.rst888 Convert :c:func:`PyType_HasFeature`, :c:func:`PyType_Check` and
/third_party/python/Doc/data/
Drefcounts.dat2280 PyType_Check:int:::
2281 PyType_Check:PyObject*:o:0:

12