Home
last modified time | relevance | path

Searched refs:PyObject_TypeCheck (Results 1 – 25 of 64) sorted by relevance

123

/third_party/python/Modules/_ctypes/
Dctypes.h106 #define PyCStgDict_Check(v) PyObject_TypeCheck(v, &PyCStgDict_Type)
116 #define CDataObject_Check(v) PyObject_TypeCheck(v, &PyCData_Type)
121 #define PyCSimpleTypeObject_Check(v) PyObject_TypeCheck(v, &PyCSimpleType_Type)
144 #define PyCArrayTypeObject_Check(v) PyObject_TypeCheck(v, &PyCArrayType_Type)
145 #define ArrayObject_Check(v) PyObject_TypeCheck(v, &PyCArray_Type)
146 #define PointerObject_Check(v) PyObject_TypeCheck(v, &PyCPointer_Type)
147 #define PyCPointerTypeObject_Check(v) PyObject_TypeCheck(v, &PyCPointerType_Type)
148 #define PyCFuncPtrObject_Check(v) PyObject_TypeCheck(v, &PyCFuncPtr_Type)
149 #define PyCFuncPtrTypeObject_Check(v) PyObject_TypeCheck(v, &PyCFuncPtrType_Type)
150 #define PyCStructTypeObject_Check(v) PyObject_TypeCheck(v, &PyCStructType_Type)
/third_party/python/Include/
Ddatetime.h206 #define PyDate_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateType)
209 #define PyDateTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateTimeType)
212 #define PyTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TimeType)
215 #define PyDelta_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DeltaType)
218 #define PyTZInfo_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TZInfoType)
Ddictobject.h70 #define PyDictKeys_Check(op) PyObject_TypeCheck(op, &PyDictKeys_Type)
71 #define PyDictValues_Check(op) PyObject_TypeCheck(op, &PyDictValues_Type)
72 #define PyDictItems_Check(op) PyObject_TypeCheck(op, &PyDictItems_Type)
Dbytearrayobject.h26 #define PyByteArray_Check(self) PyObject_TypeCheck(self, &PyByteArray_Type)
Dcomplexobject.h41 #define PyComplex_Check(op) PyObject_TypeCheck(op, &PyComplex_Type)
Dweakrefobject.h47 #define PyWeakref_CheckRef(op) PyObject_TypeCheck(op, &_PyWeakref_RefType)
Dfloatobject.h23 #define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type)
Dmoduleobject.h12 #define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
Dmethodobject.h17 #define PyCFunction_Check(op) PyObject_TypeCheck(op, &PyCFunction_Type)
Dgenobject.h37 #define PyGen_Check(op) PyObject_TypeCheck(op, &PyGen_Type)
/third_party/python/Python/
Dcodecs.c679 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_IgnoreErrors()
683 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_IgnoreErrors()
687 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeTranslateError)) { in PyCodec_IgnoreErrors()
703 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_ReplaceErrors()
721 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_ReplaceErrors()
728 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeTranslateError)) { in PyCodec_ReplaceErrors()
754 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_XMLCharRefReplaceErrors()
861 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_BackslashReplaceErrors()
888 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_BackslashReplaceErrors()
896 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeTranslateError)) { in PyCodec_BackslashReplaceErrors()
[all …]
Dimportdl.c197 if (PyObject_TypeCheck(m, &PyModuleDef_Type)) { in _PyImport_LoadDynamicModuleWithSpec()
/third_party/python/Objects/
Dinterpreteridobject.c49 if (PyObject_TypeCheck(arg, &_PyInterpreterID_Type)) { in interp_id_converter()
186 if (!PyObject_TypeCheck(self, &_PyInterpreterID_Type)) { in interpid_richcompare()
192 if (PyObject_TypeCheck(other, &_PyInterpreterID_Type)) { in interpid_richcompare()
Dnamespaceobject.c166 if (PyObject_TypeCheck(self, &_PyNamespace_Type) && in namespace_richcompare()
167 PyObject_TypeCheck(other, &_PyNamespace_Type)) in namespace_richcompare()
/third_party/python/Include/internal/
Dpycore_unionobject.h15 #define _PyGenericAlias_Check(op) PyObject_TypeCheck(op, &Py_GenericAliasType)
/third_party/python/Include/cpython/
Dmethodobject.h8 #define PyCMethod_Check(op) PyObject_TypeCheck(op, &PyCMethod_Type)
Dodictobject.h21 #define PyODict_Check(op) PyObject_TypeCheck(op, &PyODict_Type)
/third_party/python/Modules/_sqlite/clinic/
Drow.c.h23 if (!PyObject_TypeCheck(PyTuple_GET_ITEM(args, 0), pysqlite_CursorType)) { in pysqlite_row_new()
/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor.cc256 if (!PyObject_TypeCheck(value.get(), CMessage_Type)) { in GetOrBuildOptions()
292 if (!PyObject_TypeCheck(target, CMessage_Type) || in CopyToPythonProto()
457 if (!PyObject_TypeCheck(obj, &descriptor::PyBaseDescriptor_Type)) { in PyDescriptor_AsVoidPtr()
729 if (!PyObject_TypeCheck(obj, &PyMessageDescriptor_Type)) { in PyMessageDescriptor_AsDescriptor()
1044 if (!PyObject_TypeCheck(obj, &PyFieldDescriptor_Type)) { in PyFieldDescriptor_AsDescriptor()
1199 if (!PyObject_TypeCheck(obj, &PyEnumDescriptor_Type)) { in PyEnumDescriptor_AsDescriptor()
1523 if (!PyObject_TypeCheck(obj, &PyFileDescriptor_Type)) { in PyFileDescriptor_AsDescriptor()
1772 if (!PyObject_TypeCheck(obj, &PyServiceDescriptor_Type)) { in PyServiceDescriptor_AsDescriptor()
Dmessage.cc233 if (PyObject_TypeCheck(descriptor_or_name, &PyMessageDescriptor_Type)) { in New()
541 if (!PyObject_TypeCheck(cls, CMessageClass_Type)) { in CheckMessageClass()
856 GOOGLE_DCHECK(PyObject_TypeCheck(message, CMessage_Type)); in GetFactoryForMessage()
961 if (!PyObject_TypeCheck(extension, &PyFieldDescriptor_Type)) { in GetExtensionDescriptor()
1112 !PyObject_TypeCheck(property.get(), CFieldProperty_Type)) { in InitAttributes()
1845 if (!PyObject_TypeCheck(arg, CMessage_Type)) { in MergeFrom()
1878 if (!PyObject_TypeCheck(arg, CMessage_Type)) { in CopyFrom()
2006 if (!PyObject_TypeCheck(cls, CMessageClass_Type)) { in RegisterExtension()
2170 if (!PyObject_TypeCheck(other, CMessage_Type)) { in RichCompare()
2409 if (!PyObject_TypeCheck(clone, CMessage_Type)) { in DeepCopy()
[all …]
Ddescriptor_database.cc73 if (PyObject_TypeCheck(py_descriptor, CMessage_Type) && in GetFileDescriptorProto()
/third_party/python/Python/clinic/
Dtraceback.c.h34 if (!PyObject_TypeCheck(fastargs[1], &PyFrame_Type)) { in tb_new()
/third_party/python/Objects/clinic/
Dfuncobject.c.h46 if (!PyObject_TypeCheck(fastargs[0], &PyCode_Type)) { in func_new()
/third_party/python/Modules/_io/
D_iomodule.h28 #define PyWindowsConsoleIO_Check(op) (PyObject_TypeCheck((op), (PyTypeObject*)_PyWindowsConsoleIO_T…
/third_party/python/Modules/clinic/
D_elementtree.c.h22 if (!PyObject_TypeCheck(arg, &Element_Type)) { in _elementtree_Element_append()
445 if (!PyObject_TypeCheck(args[1], &Element_Type)) { in _elementtree_Element_insert()
541 if (!PyObject_TypeCheck(arg, &Element_Type)) { in _elementtree_Element_remove()

123