Home
last modified time | relevance | path

Searched refs:PyErr_ExceptionMatches (Results 1 – 25 of 131) sorted by relevance

123456

/external/python/cpython3/Modules/
Dtestcapi_long.h99 if (!PyErr_ExceptionMatches(PyExc_OverflowError)) in TESTNAME()
123 if (!PyErr_ExceptionMatches(PyExc_OverflowError)) in TESTNAME()
142 if (!PyErr_ExceptionMatches(PyExc_OverflowError)) in TESTNAME()
167 if (!PyErr_ExceptionMatches(PyExc_OverflowError)) in TESTNAME()
189 if (!PyErr_ExceptionMatches(PyExc_TypeError)) in TESTNAME()
197 if (!PyErr_ExceptionMatches(PyExc_TypeError)) in TESTNAME()
D_struct.c145 if (PyErr_ExceptionMatches(PyExc_OverflowError)) in get_long()
169 if (PyErr_ExceptionMatches(PyExc_OverflowError)) in get_ulong()
192 if (PyErr_ExceptionMatches(PyExc_OverflowError)) in get_longlong()
215 if (PyErr_ExceptionMatches(PyExc_OverflowError)) in get_ulonglong()
238 if (PyErr_ExceptionMatches(PyExc_OverflowError)) in get_ssize_t()
261 if (PyErr_ExceptionMatches(PyExc_OverflowError)) in get_size_t()
1800 if (PyLong_Check(v) && PyErr_ExceptionMatches(PyExc_OverflowError)) in s_pack_internal()
D_weakref.c65 if (PyErr_ExceptionMatches(PyExc_KeyError)) in _weakref__remove_dead_weakref_impl()
D_gdbmmodule.c163 if (res == NULL && PyErr_ExceptionMatches(PyExc_KeyError)) { in _gdbm_gdbm_get_impl()
230 if (res == NULL && PyErr_ExceptionMatches(PyExc_KeyError)) { in _gdbm_gdbm_setdefault_impl()
Dpwdmodule.c123 if (PyErr_ExceptionMatches(PyExc_OverflowError)) in pwd_getpwuid()
Dgrpmodule.c104 if (!PyErr_ExceptionMatches(PyExc_TypeError)) { in grp_getgrgid_impl()
/external/python/cpython3/Modules/_xxtestfuzz/
Dfuzzer.c22 if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_ValueError)) { in fuzz_builtin_float()
50 if (PyErr_ExceptionMatches(PyExc_UnicodeDecodeError)) { in fuzz_builtin_int()
56 if (l == NULL && PyErr_ExceptionMatches(PyExc_ValueError)) { in fuzz_builtin_int()
68 if (s == NULL && PyErr_ExceptionMatches(PyExc_UnicodeDecodeError)) { in fuzz_builtin_unicode()
/external/python/cpython2/Modules/
Dtestcapi_long.h100 if (!PyErr_ExceptionMatches(PyExc_OverflowError)) in TESTNAME()
124 if (!PyErr_ExceptionMatches(PyExc_OverflowError)) in TESTNAME()
143 if (!PyErr_ExceptionMatches(PyExc_OverflowError)) in TESTNAME()
168 if (!PyErr_ExceptionMatches(PyExc_OverflowError)) in TESTNAME()
D_weakref.c32 if (PyErr_ExceptionMatches(PyExc_KeyError)) in remove_dead_weakref()
Dpwdmodule.c109 if (PyErr_ExceptionMatches(PyExc_OverflowError)) in pwd_getpwuid()
/external/python/cpython2/Objects/
Dclassobject.c776 if (!PyErr_ExceptionMatches(PyExc_AttributeError)) in instance_getattr()
912 if (!PyErr_ExceptionMatches(PyExc_AttributeError)) in instance_repr()
949 if (!PyErr_ExceptionMatches(PyExc_AttributeError)) in instance_str()
974 if (!PyErr_ExceptionMatches(PyExc_AttributeError)) in instance_hash()
987 if (!PyErr_ExceptionMatches(PyExc_AttributeError)) in instance_hash()
997 if (!PyErr_ExceptionMatches( in instance_hash()
1190 if (!PyErr_ExceptionMatches(PyExc_AttributeError)) in instance_slice()
1278 if (!PyErr_ExceptionMatches(PyExc_AttributeError)) in instance_ass_slice()
1312 if (!PyErr_ExceptionMatches(PyExc_AttributeError)) in instance_ass_slice()
1385 if (PyErr_ExceptionMatches(PyExc_AttributeError)) { in instance_contains()
[all …]
Diterobject.c68 if (PyErr_ExceptionMatches(PyExc_IndexError) || in iter_iternext()
69 PyErr_ExceptionMatches(PyExc_StopIteration)) in iter_iternext()
196 else if (PyErr_ExceptionMatches(PyExc_StopIteration)) { in calliter_iternext()
Denumobject.c245 if (PyErr_ExceptionMatches(PyExc_AttributeError)) in reversed_new()
310 if (PyErr_ExceptionMatches(PyExc_IndexError) || in reversed_next()
311 PyErr_ExceptionMatches(PyExc_StopIteration)) in reversed_next()
Dgenobject.c140 if (PyErr_ExceptionMatches(PyExc_StopIteration) in gen_close()
141 || PyErr_ExceptionMatches(PyExc_GeneratorExit)) in gen_close()
/external/python/cpython2/Modules/_sqlite/
Dmicroprotocols.c107 if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_TypeError)) in pysqlite_microprotocols_adapt()
122 if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_TypeError)) { in pysqlite_microprotocols_adapt()
/external/python/cpython3/Objects/
Diterobject.c70 if (PyErr_ExceptionMatches(PyExc_IndexError) || in iter_iternext()
71 PyErr_ExceptionMatches(PyExc_StopIteration)) in iter_iternext()
234 else if (PyErr_ExceptionMatches(PyExc_StopIteration)) { in calliter_iternext()
Dgenobject.c251 else if (!result && PyErr_ExceptionMatches(PyExc_StopIteration)) { in gen_send_ex()
263 PyErr_ExceptionMatches(PyExc_StopAsyncIteration)) in gen_send_ex()
383 if (PyErr_ExceptionMatches(PyExc_StopIteration) in gen_close()
384 || PyErr_ExceptionMatches(PyExc_GeneratorExit)) { in gen_close()
596 if (PyErr_ExceptionMatches(PyExc_StopIteration)) { in _PyGen_FetchStopIterationValue()
1484 if (PyErr_ExceptionMatches(PyExc_StopAsyncIteration) in async_gen_unwrap_value()
1485 || PyErr_ExceptionMatches(PyExc_GeneratorExit) in async_gen_unwrap_value()
1884 if (PyErr_ExceptionMatches(PyExc_StopAsyncIteration)) { in async_gen_athrow_send()
1894 else if (PyErr_ExceptionMatches(PyExc_GeneratorExit)) { in async_gen_athrow_send()
Denumobject.c342 if (PyErr_ExceptionMatches(PyExc_IndexError) || in reversed_next()
343 PyErr_ExceptionMatches(PyExc_StopIteration)) in reversed_next()
/external/python/cpython3/Modules/_sqlite/
Dmicroprotocols.c109 if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_TypeError)) in pysqlite_microprotocols_adapt()
126 if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_TypeError)) { in pysqlite_microprotocols_adapt()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_func.cc225 if (PyErr_ExceptionMatches(PyExc_ValueError) || in DoCallPyFunc()
226 PyErr_ExceptionMatches(PyExc_TypeError)) { in DoCallPyFunc()
228 } else if (PyErr_ExceptionMatches(PyExc_StopIteration)) { in DoCallPyFunc()
231 } else if (PyErr_ExceptionMatches(PyExc_MemoryError)) { in DoCallPyFunc()
233 } else if (PyErr_ExceptionMatches(PyExc_NotImplementedError)) { in DoCallPyFunc()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_database.cc58 if (PyErr_ExceptionMatches(PyExc_KeyError)) { in GetFileDescriptorProto()
/external/python/cpython3/Python/
Dceval.c1799 && PyErr_ExceptionMatches(PyExc_StopIteration)) in _PyEval_EvalFrameDefault()
1913 if (PyErr_ExceptionMatches(PyExc_KeyError)) in _PyEval_EvalFrameDefault()
2073 if (!PyErr_ExceptionMatches(PyExc_KeyError)) in _PyEval_EvalFrameDefault()
2095 if (PyErr_ExceptionMatches(PyExc_KeyError)) in _PyEval_EvalFrameDefault()
2134 if (!PyErr_ExceptionMatches(PyExc_KeyError)) in _PyEval_EvalFrameDefault()
2141 if (PyErr_ExceptionMatches(PyExc_KeyError)) in _PyEval_EvalFrameDefault()
2201 if (!PyErr_ExceptionMatches(PyExc_KeyError)) in _PyEval_EvalFrameDefault()
2299 PyErr_ExceptionMatches(PyExc_TypeError)) in _PyEval_EvalFrameDefault()
2424 if (!PyErr_ExceptionMatches(PyExc_KeyError)) { in _PyEval_EvalFrameDefault()
2487 if (PyErr_ExceptionMatches(PyExc_AttributeError)) { in _PyEval_EvalFrameDefault()
[all …]
Dsysmodule.c162 if (PyErr_ExceptionMatches(PyExc_ImportError)) { in sys_breakpointhook()
173 if (PyErr_ExceptionMatches(PyExc_AttributeError)) { in sys_breakpointhook()
296 if (PyErr_ExceptionMatches(PyExc_UnicodeEncodeError)) { in sys_displayhook()
1276 if (dflt != NULL && PyErr_ExceptionMatches(PyExc_TypeError)) { in sys_getsizeof()
2383 if (res < 0 && PyErr_ExceptionMatches(PyExc_KeyError)) in _PySys_BeginInit()
2410 if (res < 0 && PyErr_ExceptionMatches(PyExc_KeyError)) { in _PySys_BeginInit()
2501 if (!PyErr_ExceptionMatches(PyExc_KeyError)) { in _PySys_EndInit()
Dpytime.c76 if (PyErr_ExceptionMatches(PyExc_OverflowError)) { in _PyLong_AsTime_t()
276 if (PyErr_ExceptionMatches(PyExc_OverflowError)) { in _PyTime_FromNanosecondsObject()
419 if (PyErr_ExceptionMatches(PyExc_OverflowError)) { in _PyTime_FromObject()
Dimportdl.c63 if (PyErr_ExceptionMatches(PyExc_UnicodeEncodeError)) { in get_encoded_name()

123456