Home
last modified time | relevance | path

Searched refs:PyObject_TypeCheck (Results 1 – 25 of 125) 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)
/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/Include/
Ddatetime.h198 #define PyDate_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateType)
201 #define PyDateTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateTimeType)
204 #define PyTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TimeType)
207 #define PyDelta_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DeltaType)
210 #define PyTZInfo_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TZInfoType)
Ddictobject.h67 #define PyDictKeys_Check(op) PyObject_TypeCheck(op, &PyDictKeys_Type)
68 #define PyDictValues_Check(op) PyObject_TypeCheck(op, &PyDictValues_Type)
69 #define PyDictItems_Check(op) PyObject_TypeCheck(op, &PyDictItems_Type)
Dbytearrayobject.h26 #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)
/external/python/cpython3/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 …]
/external/python/cpython3/Objects/
Dinterpreteridobject.c43 if (PyObject_TypeCheck(arg, &_PyInterpreterID_Type)) { in interp_id_converter()
180 if (!PyObject_TypeCheck(self, &_PyInterpreterID_Type)) { in interpid_richcompare()
186 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()
/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/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/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/Modules/_sqlite/
Drow.c49 if (!PyObject_TypeCheck((PyObject*)cursor, &pysqlite_CursorType)) { in pysqlite_row_new()
195 if (PyObject_TypeCheck(_other, &pysqlite_RowType)) { in pysqlite_row_richcompare()
/external/python/cpython3/Include/cpython/
Dmethodobject.h8 #define PyCMethod_Check(op) PyObject_TypeCheck(op, &PyCMethod_Type)
/external/python/cpython3/Modules/clinic/
D_curses_panel.c.h216 if (!PyObject_TypeCheck(arg, &PyCursesWindow_Type)) { in _curses_panel_panel_replace()
290 if (!PyObject_TypeCheck(arg, &PyCursesWindow_Type)) { in _curses_panel_new_panel()
/external/python/cpython3/Python/clinic/
Dtraceback.c.h34 if (!PyObject_TypeCheck(fastargs[1], &PyFrame_Type)) { in tb_new()

12345