Home
last modified time | relevance | path

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

12345

/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/cpython3/Include/
Ddatetime.h186 #define PyDate_Check(op) PyObject_TypeCheck(op, &PyDateTime_DateType)
189 #define PyDateTime_Check(op) PyObject_TypeCheck(op, &PyDateTime_DateTimeType)
192 #define PyTime_Check(op) PyObject_TypeCheck(op, &PyDateTime_TimeType)
195 #define PyDelta_Check(op) PyObject_TypeCheck(op, &PyDateTime_DeltaType)
198 #define PyTZInfo_Check(op) PyObject_TypeCheck(op, &PyDateTime_TZInfoType)
213 #define PyDate_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateType)
216 #define PyDateTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateTimeType)
219 #define PyTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TimeType)
222 #define PyDelta_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DeltaType)
225 #define PyTZInfo_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TZInfoType)
Ddictobject.h61 #define PyDictKeys_Check(op) PyObject_TypeCheck(op, &PyDictKeys_Type)
62 #define PyDictItems_Check(op) PyObject_TypeCheck(op, &PyDictItems_Type)
63 #define PyDictValues_Check(op) PyObject_TypeCheck(op, &PyDictValues_Type)
Dbytearrayobject.h38 #define PyByteArray_Check(self) PyObject_TypeCheck(self, &PyByteArray_Type)
Dodictobject.h21 #define PyODict_Check(op) PyObject_TypeCheck(op, &PyODict_Type)
Dweakrefobject.h47 #define PyWeakref_CheckRef(op) PyObject_TypeCheck(op, &_PyWeakref_RefType)
Dcomplexobject.h41 #define PyComplex_Check(op) PyObject_TypeCheck(op, &PyComplex_Type)
Dfloatobject.h23 #define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type)
Dmoduleobject.h12 #define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
/external/python/cpython3/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)
/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/cpython3/Python/
Dcodecs.c682 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_IgnoreErrors()
686 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_IgnoreErrors()
690 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeTranslateError)) { in PyCodec_IgnoreErrors()
706 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_ReplaceErrors()
725 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_ReplaceErrors()
732 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeTranslateError)) { in PyCodec_ReplaceErrors()
759 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_XMLCharRefReplaceErrors()
866 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_BackslashReplaceErrors()
893 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_BackslashReplaceErrors()
901 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeTranslateError)) { in PyCodec_BackslashReplaceErrors()
[all …]
/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/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/include/
Dcext.h220 PyObject_TypeCheck((type), &PyString_Type) \
221 || PyObject_TypeCheck((type), &PyUnicode_Type) \
224 #define BaseString_Check(type) PyObject_TypeCheck((type), &PyBaseString_Type)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/include/
Dcext.h258 PyObject_TypeCheck((type), &PyString_Type) \
259 || PyObject_TypeCheck((type), &PyUnicode_Type) \
262 #define BaseString_Check(type) PyObject_TypeCheck((type), &PyBaseString_Type)
/external/python/cpython3/Objects/
Dnamespaceobject.c165 if (PyObject_TypeCheck(self, &_PyNamespace_Type) && in namespace_richcompare()
166 PyObject_TypeCheck(other, &_PyNamespace_Type)) in namespace_richcompare()
/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()
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 …]

12345