Home
last modified time | relevance | path

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

123

/external/python/cpython2/Include/
Ddatetime.h170 #define PyDate_Check(op) PyObject_TypeCheck(op, &PyDateTime_DateType)
173 #define PyDateTime_Check(op) PyObject_TypeCheck(op, &PyDateTime_DateTimeType)
176 #define PyTime_Check(op) PyObject_TypeCheck(op, &PyDateTime_TimeType)
179 #define PyDelta_Check(op) PyObject_TypeCheck(op, &PyDateTime_DeltaType)
182 #define PyTZInfo_Check(op) PyObject_TypeCheck(op, &PyDateTime_TZInfoType)
194 #define PyDate_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateType)
197 #define PyDateTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateTimeType)
200 #define PyTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TimeType)
203 #define PyDelta_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DeltaType)
206 #define PyTZInfo_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TZInfoType)
Dmoduleobject.h12 #define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
Dgenobject.h31 #define PyGen_Check(op) PyObject_TypeCheck(op, &PyGen_Type)
Dbytearrayobject.h35 #define PyByteArray_Check(self) PyObject_TypeCheck(self, &PyByteArray_Type)
Dweakrefobject.h45 #define PyWeakref_CheckRef(op) PyObject_TypeCheck(op, &_PyWeakref_RefType)
Dcomplexobject.h47 #define PyComplex_Check(op) PyObject_TypeCheck(op, &PyComplex_Type)
Dfloatobject.h21 #define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type)
Dfileobject.h37 #define PyFile_Check(op) PyObject_TypeCheck(op, &PyFile_Type)
/external/python/cpython2/Modules/_ctypes/
Dctypes.h146 #define PyCStgDict_Check(v) PyObject_TypeCheck(v, &PyCStgDict_Type)
156 #define CDataObject_Check(v) PyObject_TypeCheck(v, &PyCData_Type)
161 #define PyCSimpleTypeObject_Check(v) PyObject_TypeCheck(v, &PyCSimpleType_Type)
184 #define PyCArrayTypeObject_Check(v) PyObject_TypeCheck(v, &PyCArrayType_Type)
185 #define ArrayObject_Check(v) PyObject_TypeCheck(v, &PyCArray_Type)
186 #define PointerObject_Check(v) PyObject_TypeCheck(v, &PyCPointer_Type)
187 #define PyCPointerTypeObject_Check(v) PyObject_TypeCheck(v, &PyCPointerType_Type)
188 #define PyCFuncPtrObject_Check(v) PyObject_TypeCheck(v, &PyCFuncPtr_Type)
189 #define PyCFuncPtrTypeObject_Check(v) PyObject_TypeCheck(v, &PyCFuncPtrType_Type)
190 #define PyCStructTypeObject_Check(v) PyObject_TypeCheck(v, &PyCStructType_Type)
/external/python/cpython2/Python/
Dcodecs.c631 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_IgnoreErrors()
635 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_IgnoreErrors()
639 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeTranslateError)) { in PyCodec_IgnoreErrors()
659 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_ReplaceErrors()
676 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_ReplaceErrors()
682 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeTranslateError)) { in PyCodec_ReplaceErrors()
707 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_XMLCharRefReplaceErrors()
832 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_BackslashReplaceErrors()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor.cc223 if (!PyObject_TypeCheck(value.get(), &CMessage_Type)) { in GetOrBuildOptions()
265 if (!PyObject_TypeCheck(target, &CMessage_Type) || in CopyToPythonProto()
405 if (!PyObject_TypeCheck(obj, &descriptor::PyBaseDescriptor_Type)) { in PyDescriptor_AsVoidPtr()
669 if (!PyObject_TypeCheck(obj, &PyMessageDescriptor_Type)) { in PyMessageDescriptor_AsDescriptor()
959 if (!PyObject_TypeCheck(obj, &PyFieldDescriptor_Type)) { in PyFieldDescriptor_AsDescriptor()
1107 if (!PyObject_TypeCheck(obj, &PyEnumDescriptor_Type)) { in PyEnumDescriptor_AsDescriptor()
1413 if (!PyObject_TypeCheck(obj, &PyFileDescriptor_Type)) { in PyFileDescriptor_AsDescriptor()
Ddescriptor_database.cc73 if (PyObject_TypeCheck(py_descriptor, &CMessage_Type) && in GetFileDescriptorProto()
Dmessage.cc241 if (!PyObject_TypeCheck(py_descriptor, &PyMessageDescriptor_Type)) { in New()
394 if (!PyObject_TypeCheck(cls, &CMessageClass_Type)) { in CheckMessageClass()
758 GOOGLE_DCHECK(PyObject_TypeCheck(message, &CMessage_Type)); in CheckAndGetInteger()
912 if (!PyObject_TypeCheck(extension, &PyFieldDescriptor_Type)) { in CheckAndGetInteger()
1828 if (!PyObject_TypeCheck(arg, &CMessage_Type)) { in CheckAndGetInteger()
1860 if (!PyObject_TypeCheck(arg, &CMessage_Type)) { in CheckAndGetInteger()
2203 if (!PyObject_TypeCheck(other, &CMessage_Type)) { in CheckAndGetInteger()
2454 if (!PyObject_TypeCheck(clone, &CMessage_Type)) { in CheckAndGetInteger()
2803 if (!PyObject_TypeCheck(msg, &CMessage_Type)) { in CheckAndGetInteger()
2811 if (!PyObject_TypeCheck(msg, &CMessage_Type)) { in CheckAndGetInteger()
[all …]
Drepeated_composite_container.cc204 if (!PyObject_TypeCheck(next.get(), &CMessage_Type)) { in Extend()
308 if (!PyObject_TypeCheck(other, &RepeatedCompositeContainer_Type)) { in RichCompare()
/external/python/cpython2/Mac/Modules/carbonevt/
D_CarbonEvtmodule.c112 #define EventRef_Check(x) ((x)->ob_type == &EventRef_Type || PyObject_TypeCheck((x), &EventRef_Type…
457 #define EventQueueRef_Check(x) ((x)->ob_type == &EventQueueRef_Type || PyObject_TypeCheck((x), &Eve…
678 #define EventLoopRef_Check(x) ((x)->ob_type == &EventLoopRef_Type || PyObject_TypeCheck((x), &Event…
808 #define EventLoopTimerRef_Check(x) ((x)->ob_type == &EventLoopTimerRef_Type || PyObject_TypeCheck((…
956 #define EventHandlerRef_Check(x) ((x)->ob_type == &EventHandlerRef_Type || PyObject_TypeCheck((x), …
1148 …dlerCallRef_Check(x) ((x)->ob_type == &EventHandlerCallRef_Type || PyObject_TypeCheck((x), &EventH…
1281 #define EventTargetRef_Check(x) ((x)->ob_type == &EventTargetRef_Type || PyObject_TypeCheck((x), &E…
1436 #define EventHotKeyRef_Check(x) ((x)->ob_type == &EventHotKeyRef_Type || PyObject_TypeCheck((x), &E…
/external/python/cpython2/Mac/Modules/ibcarbon/
D_IBCarbon.c23 #define IBNibRefObj_Check(x) ((x)->ob_type == &IBNibRef_Type || PyObject_TypeCheck((x), &IBNibRef_T…
/external/python/cpython2/Modules/_sqlite/
Drow.c50 if (!PyObject_TypeCheck((PyObject*)cursor, &pysqlite_CursorType)) { in pysqlite_row_new()
/external/python/cpython2/Objects/
Ddescrobject.c67 if (!PyObject_TypeCheck(obj, descr->d_type)) { in descr_check()
169 if (!PyObject_TypeCheck(obj, descr->d_type)) { in descr_setcheck()
1100 assert(PyObject_TypeCheck(d, &PyWrapperDescr_Type)); in PyWrapper_New()
Dlistobject.c1919 if (!PyObject_TypeCheck(b, &sortwrapper_type)) { in sortwrapper_richcompare()
1957 if (!PyObject_TypeCheck(so, &sortwrapper_type)) { in sortwrapper_getvalue()
1990 if (!PyObject_TypeCheck(x, &sortwrapper_type) || in cmpwrapper_call()
1991 !PyObject_TypeCheck(y, &sortwrapper_type)) { in cmpwrapper_call()
/external/python/cpython2/Mac/Modules/cm/
D_Cmmodule.c63 #define CmpInstObj_Check(x) ((x)->ob_type == &ComponentInstance_Type || PyObject_TypeCheck((x), &Co…
334 #define CmpObj_Check(x) ((x)->ob_type == &Component_Type || PyObject_TypeCheck((x), &Component_Type…
/external/python/cpython2/Mac/Modules/scrap/
D_Scrapmodule.c27 #define ScrapObj_Check(x) ((x)->ob_type == &Scrap_Type || PyObject_TypeCheck((x), &Scrap_Type))
/external/python/cpython2/Mac/Modules/cf/
D_CFmodule.c118 #define CFTypeRefObj_Check(x) ((x)->ob_type == &CFTypeRef_Type || PyObject_TypeCheck((x), &CFTypeRe…
480 #define CFArrayRefObj_Check(x) ((x)->ob_type == &CFArrayRef_Type || PyObject_TypeCheck((x), &CFArra…
691 …leArrayRefObj_Check(x) ((x)->ob_type == &CFMutableArrayRef_Type || PyObject_TypeCheck((x), &CFMuta…
931 #define CFDictionaryRefObj_Check(x) ((x)->ob_type == &CFDictionaryRef_Type || PyObject_TypeCheck((x…
1124 …ryRefObj_Check(x) ((x)->ob_type == &CFMutableDictionaryRef_Type || PyObject_TypeCheck((x), &CFMuta…
1301 #define CFDataRefObj_Check(x) ((x)->ob_type == &CFDataRef_Type || PyObject_TypeCheck((x), &CFDataRe…
1532 #define CFMutableDataRefObj_Check(x) ((x)->ob_type == &CFMutableDataRef_Type || PyObject_TypeCheck(…
1797 #define CFStringRefObj_Check(x) ((x)->ob_type == &CFStringRef_Type || PyObject_TypeCheck((x), &CFSt…
2540 …StringRefObj_Check(x) ((x)->ob_type == &CFMutableStringRef_Type || PyObject_TypeCheck((x), &CFMuta…
2928 #define CFURLRefObj_Check(x) ((x)->ob_type == &CFURLRef_Type || PyObject_TypeCheck((x), &CFURLRef_T…
/external/python/cpython2/Modules/
Dselectmodule.c734 #define pyepoll_CHECK(op) (PyObject_TypeCheck((op), &pyEpoll_Type))
1200 #define kqueue_event_Check(op) (PyObject_TypeCheck((op), &kqueue_event_Type))
1209 #define kqueue_queue_Check(op) (PyObject_TypeCheck((op), &kqueue_queue_Type))
/external/python/cpython2/Mac/Modules/snd/
D_Sndmodule.c46 #define SndCh_Check(x) ((x)->ob_type == &SndChannel_Type || PyObject_TypeCheck((x), &SndChannel_Typ…
261 #define SPBObj_Check(x) ((x)->ob_type == &SPB_Type || PyObject_TypeCheck((x), &SPB_Type))
/external/python/cpython2/Mac/Modules/file/
D_Filemodule.c169 #define FSCatalogInfo_Check(x) ((x)->ob_type == &FSCatalogInfo_Type || PyObject_TypeCheck((x), &FSC…
547 #define FInfo_Check(x) ((x)->ob_type == &FInfo_Type || PyObject_TypeCheck((x), &FInfo_Type))
734 #define Alias_Check(x) ((x)->ob_type == &Alias_Type || PyObject_TypeCheck((x), &Alias_Type))
1086 #define FSSpec_Check(x) ((x)->ob_type == &FSSpec_Type || PyObject_TypeCheck((x), &FSSpec_Type))
1546 #define FSRef_Check(x) ((x)->ob_type == &FSRef_Type || PyObject_TypeCheck((x), &FSRef_Type))

123