Home
last modified time | relevance | path

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

123456

/external/python/cpython3/Modules/_xxtestfuzz/
Dfuzzer.c22 if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_ValueError)) { in fuzz_builtin_float()
57 if (PyErr_ExceptionMatches(PyExc_UnicodeDecodeError)) { in fuzz_builtin_int()
63 if (l == NULL && PyErr_ExceptionMatches(PyExc_ValueError)) { in fuzz_builtin_int()
75 if (s == NULL && PyErr_ExceptionMatches(PyExc_UnicodeDecodeError)) { in fuzz_builtin_unicode()
111 if (PyErr_ExceptionMatches(PyExc_ValueError) || in fuzz_json_loads()
114 PyErr_ExceptionMatches(PyExc_RecursionError) || in fuzz_json_loads()
116 PyErr_ExceptionMatches(PyExc_UnicodeDecodeError) in fuzz_json_loads()
189 if (compiled == NULL && PyErr_ExceptionMatches(PyExc_ValueError)) { in fuzz_sre_compile()
194 if (compiled == NULL && (PyErr_ExceptionMatches(PyExc_OverflowError) || in fuzz_sre_compile()
195 PyErr_ExceptionMatches(PyExc_AssertionError) || in fuzz_sre_compile()
[all …]
/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_weakref.c65 if (PyErr_ExceptionMatches(PyExc_KeyError)) in _weakref__remove_dead_weakref_impl()
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()
1823 if (PyLong_Check(v) && PyErr_ExceptionMatches(PyExc_OverflowError)) in s_pack_internal()
D_gdbmmodule.c184 if (res == NULL && PyErr_ExceptionMatches(PyExc_KeyError)) { in _gdbm_gdbm_get_impl()
253 if (res == NULL && PyErr_ExceptionMatches(PyExc_KeyError)) { in _gdbm_gdbm_setdefault_impl()
Dxxmodule.c91 if (rv < 0 && PyErr_ExceptionMatches(PyExc_KeyError)) in Xxo_setattr()
Dxxlimited.c103 if (rv < 0 && PyErr_ExceptionMatches(PyExc_KeyError)) in Xxo_setattr()
/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/
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()
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 …]
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/tensorflow/tensorflow/python/lib/core/
Dpy_func.cc213 if (PyErr_ExceptionMatches(PyExc_ValueError) || in DoCallPyFunc()
214 PyErr_ExceptionMatches(PyExc_TypeError)) { in DoCallPyFunc()
216 } else if (PyErr_ExceptionMatches(PyExc_StopIteration)) { in DoCallPyFunc()
219 } else if (PyErr_ExceptionMatches(PyExc_MemoryError)) { in DoCallPyFunc()
221 } else if (PyErr_ExceptionMatches(PyExc_NotImplementedError)) { in DoCallPyFunc()
/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.c71 if (PyErr_ExceptionMatches(PyExc_IndexError) || in iter_iternext()
72 PyErr_ExceptionMatches(PyExc_StopIteration)) in iter_iternext()
236 else if (PyErr_ExceptionMatches(PyExc_StopIteration)) { in calliter_iternext()
Dgenobject.c252 else if (!result && PyErr_ExceptionMatches(PyExc_StopIteration)) { in gen_send_ex()
264 PyErr_ExceptionMatches(PyExc_StopAsyncIteration)) in gen_send_ex()
384 if (PyErr_ExceptionMatches(PyExc_StopIteration) in gen_close()
385 || PyErr_ExceptionMatches(PyExc_GeneratorExit)) { in gen_close()
597 if (PyErr_ExceptionMatches(PyExc_StopIteration)) { in _PyGen_FetchStopIterationValue()
1482 if (PyErr_ExceptionMatches(PyExc_StopAsyncIteration) in async_gen_unwrap_value()
1483 || PyErr_ExceptionMatches(PyExc_GeneratorExit) in async_gen_unwrap_value()
1911 if (PyErr_ExceptionMatches(PyExc_StopAsyncIteration) || in async_gen_athrow_send()
1912 PyErr_ExceptionMatches(PyExc_GeneratorExit)) in async_gen_athrow_send()
1950 if (PyErr_ExceptionMatches(PyExc_StopAsyncIteration) || in async_gen_athrow_throw()
[all …]
Denumobject.c342 if (PyErr_ExceptionMatches(PyExc_IndexError) || in reversed_next()
343 PyErr_ExceptionMatches(PyExc_StopIteration)) in reversed_next()
/external/python/cpython3/Modules/_sqlite/
Dmicroprotocols.c114 else if (adapted || !PyErr_ExceptionMatches(PyExc_TypeError)) { in pysqlite_microprotocols_adapt()
133 else if (adapted || !PyErr_ExceptionMatches(PyExc_TypeError)) { in pysqlite_microprotocols_adapt()
/external/python/cpython3/Python/
Dsysmodule.c296 if (PyErr_ExceptionMatches(PyExc_RuntimeError)) { in PySys_AddAuditHook()
343 if (PyErr_ExceptionMatches(PyExc_Exception)) { in sys_addaudithook_impl()
463 if (PyErr_ExceptionMatches(PyExc_ImportError)) { in sys_breakpointhook()
474 if (PyErr_ExceptionMatches(PyExc_AttributeError)) { in sys_breakpointhook()
611 if (PyErr_ExceptionMatches(PyExc_UnicodeEncodeError)) { in sys_displayhook()
1619 if (dflt != NULL && PyErr_ExceptionMatches(PyExc_TypeError)) { in sys_getsizeof()
2721 if (res < 0 && PyErr_ExceptionMatches(PyExc_KeyError)) in _PySys_InitCore()
2748 if (res < 0 && PyErr_ExceptionMatches(PyExc_KeyError)) { in _PySys_InitCore()
2916 if (!PyErr_ExceptionMatches(PyExc_KeyError)) { in _PySys_InitMain()
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()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_database.cc58 if (PyErr_ExceptionMatches(PyExc_KeyError)) { in GetFileDescriptorProto()
/external/python/cpython3/Modules/_ctypes/
Dstgdict.c399 PyErr_ExceptionMatches(PyExc_TypeError) || in PyCStructUnionType_update_stgdict()
400 PyErr_ExceptionMatches(PyExc_OverflowError)) in PyCStructUnionType_update_stgdict()
415 if (PyErr_ExceptionMatches(PyExc_TypeError)) { in PyCStructUnionType_update_stgdict()

123456