Home
last modified time | relevance | path

Searched refs:PyErr_Occurred (Results 1 – 25 of 355) sorted by relevance

12345678910>>...15

/external/python/cpython3/Python/
Dstructmember.c141 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
152 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
161 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
170 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
179 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
188 if ((ulong_val == (unsigned long)-1) && PyErr_Occurred()) { in PyMember_SetOne()
194 PyErr_Occurred()) in PyMember_SetOne()
206 if ((*(long*)addr == -1) && PyErr_Occurred()) in PyMember_SetOne()
213 && PyErr_Occurred()) { in PyMember_SetOne()
219 && PyErr_Occurred()) in PyMember_SetOne()
[all …]
Dmarshal.c356 if ((x == -1) && PyErr_Occurred()) { in w_complex_object()
542 if (PyErr_Occurred()) { in w_complex_object()
723 if (!PyErr_Occurred()) { in r_string()
818 if (PyErr_Occurred()) in r_PyLong()
840 if (PyErr_Occurred()) { in r_PyLong()
854 if (PyErr_Occurred()) { in r_PyLong()
869 if (PyErr_Occurred()) { in r_PyLong()
1004 retval = PyErr_Occurred() ? NULL : PyLong_FromLong(n); in r_object()
1035 if (dx == -1.0 && PyErr_Occurred()) in r_object()
1050 if (x == -1.0 && PyErr_Occurred()) in r_object()
[all …]
Dimportdl.c136 if (!PyErr_Occurred()) { in _PyImport_LoadDynamicModuleWithSpec()
163 if (!PyErr_Occurred()) { in _PyImport_LoadDynamicModuleWithSpec()
170 } else if (PyErr_Occurred()) { in _PyImport_LoadDynamicModuleWithSpec()
/external/python/cpython2/Python/
Dstructmember.c20 if (PyErr_Occurred()) { in listmembers()
213 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
224 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
233 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
242 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
251 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
260 if ((ulong_val == (unsigned long)-1) && PyErr_Occurred()) { in PyMember_SetOne()
266 PyErr_Occurred()) in PyMember_SetOne()
278 if ((*(long*)addr == -1) && PyErr_Occurred()) in PyMember_SetOne()
285 && PyErr_Occurred()) { in PyMember_SetOne()
[all …]
Dmarshal.c422 if (PyErr_Occurred()) { in w_object()
719 if (dx == -1.0 && PyErr_Occurred()) { in r_object()
738 if (x == -1.0 && PyErr_Occurred()) { in r_object()
760 if (c.real == -1.0 && PyErr_Occurred()) { in r_object()
773 if (c.imag == -1.0 && PyErr_Occurred()) { in r_object()
792 if (c.real == -1.0 && PyErr_Occurred()) { in r_object()
803 if (c.imag == -1.0 && PyErr_Occurred()) { in r_object()
899 if (!PyErr_Occurred()) in r_object()
926 if (!PyErr_Occurred()) in r_object()
955 if (PyErr_Occurred()) { in r_object()
[all …]
Dimportdl.c43 if (PyErr_Occurred()) in _PyImport_LoadDynamicModule()
55 if (PyErr_Occurred()) in _PyImport_LoadDynamicModule()
/external/python/cpython3/Modules/
Dtestcapi_long.h50 if (uout == (unsigned TYPENAME)-1 && PyErr_Occurred()) in TESTNAME()
65 if (out == (TYPENAME)-1 && PyErr_Occurred()) in TESTNAME()
96 if (uout != (unsigned TYPENAME)-1 || !PyErr_Occurred()) in TESTNAME()
119 if (uout != (unsigned TYPENAME)-1 || !PyErr_Occurred()) in TESTNAME()
138 if (out != (TYPENAME)-1 || !PyErr_Occurred()) in TESTNAME()
163 if (out != (TYPENAME)-1 || !PyErr_Occurred()) in TESTNAME()
187 if (out != (TYPENAME)-1 || !PyErr_Occurred()) in TESTNAME()
195 if (uout != (unsigned TYPENAME)-1 || !PyErr_Occurred()) in TESTNAME()
Dresource.c120 if (PyErr_Occurred()) { in resource_getrusage_impl()
146 if (rl_out->rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit()
149 if (rl_out->rlim_max == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit()
154 if (rl_out->rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit()
157 if (rl_out->rlim_max == (rlim_t)-1 && PyErr_Occurred()) in py2rlimit()
D_struct.c144 if (x == (long)-1 && PyErr_Occurred()) { in get_long()
168 if (x == (unsigned long)-1 && PyErr_Occurred()) { in get_ulong()
191 if (x == (long long)-1 && PyErr_Occurred()) { in get_longlong()
214 if (x == (unsigned long long)-1 && PyErr_Occurred()) { in get_ulonglong()
237 if (x == (Py_ssize_t)-1 && PyErr_Occurred()) { in get_ssize_t()
260 if (x == (size_t)-1 && PyErr_Occurred()) { in get_size_t()
283 if (x == -1.0 && PyErr_Occurred()) { in unpack_halffloat()
295 if (x == -1.0 && PyErr_Occurred()) { in pack_halffloat()
310 if (x == -1.0 && PyErr_Occurred()) in unpack_float()
322 if (x == -1.0 && PyErr_Occurred()) in unpack_double()
[all …]
D_stat.c254 if ((value == (unsigned long)-1) && PyErr_Occurred()) in _PyLong_AsMode_t()
271 if ((mode == (mode_t)-1) && PyErr_Occurred()) \
325 if ((mode == (mode_t)-1) && PyErr_Occurred()) in stat_S_IMODE()
338 if ((mode == (mode_t)-1) && PyErr_Occurred()) in stat_S_IFMT()
402 if ((mode == (mode_t)-1) && PyErr_Occurred()) in stat_filemode()
/external/python/cpython2/Modules/
Dtestcapi_long.h51 if (uout == (unsigned TYPENAME)-1 && PyErr_Occurred()) in TESTNAME()
66 if (out == (TYPENAME)-1 && PyErr_Occurred()) in TESTNAME()
97 if (uout != (unsigned TYPENAME)-1 || !PyErr_Occurred()) in TESTNAME()
120 if (uout != (unsigned TYPENAME)-1 || !PyErr_Occurred()) in TESTNAME()
139 if (out != (TYPENAME)-1 || !PyErr_Occurred()) in TESTNAME()
164 if (out != (TYPENAME)-1 || !PyErr_Occurred()) in TESTNAME()
Dmathmodule.c686 if (x == -1.0 && PyErr_Occurred()) in math_1()
719 if (x == -1.0 && PyErr_Occurred()) in math_1a()
766 if ((x == -1.0 || y == -1.0) && PyErr_Occurred()) in math_2()
983 if (PyErr_Occurred()) in math_fsum()
989 if (PyErr_Occurred()) in math_fsum()
1109 if (x == -1 && PyErr_Occurred()) in math_factorial()
1159 if (x == -1.0 && PyErr_Occurred()) in math_frexp()
1195 if (exp == -1 && PyErr_Occurred()) in math_ldexp()
1241 if (x == -1.0 && PyErr_Occurred()) in math_modf()
1290 if (x == -1.0 && PyErr_Occurred()) { in loghelper()
[all …]
Dresource.c104 if (PyErr_Occurred()) { in resource_getrusage()
174 if (rl.rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in resource_setrlimit()
177 if (rl.rlim_max == (rlim_t)-1 && PyErr_Occurred()) in resource_setrlimit()
183 if (rl.rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in resource_setrlimit()
187 if (rl.rlim_max == (rlim_t)-1 && PyErr_Occurred()) in resource_setrlimit()
D_testcapimodule.c263 if ((hash == -1) && PyErr_Occurred()) { in test_lazy_hash_inheritance()
372 if (res || !PyErr_Occurred()){ in test_broken_memoryview()
581 if (value == -1 && PyErr_Occurred()) in test_long_and_overflow()
608 if (value == -1 && PyErr_Occurred()) in test_long_and_overflow()
625 if (value == -1 && PyErr_Occurred()) in test_long_and_overflow()
652 if (value == -1 && PyErr_Occurred()) in test_long_and_overflow()
668 if (value == -1 && PyErr_Occurred()) in test_long_and_overflow()
683 if (value == -1 && PyErr_Occurred()) in test_long_and_overflow()
698 if (value == -1 && PyErr_Occurred()) in test_long_and_overflow()
713 if (value == -1 && PyErr_Occurred()) in test_long_and_overflow()
[all …]
/external/python/cpython3/Objects/stringlib/
Dpartition.h33 if (PyErr_Occurred()) { in STRINGLIB()
54 if (PyErr_Occurred()) { in STRINGLIB()
88 if (PyErr_Occurred()) { in STRINGLIB()
109 if (PyErr_Occurred()) { in STRINGLIB()
/external/python/cpython3/PC/clinic/
Dmsvcrtmodule.c.h93 if ((_return_value == -1) && PyErr_Occurred()) { in msvcrt_setmode()
131 if ((_return_value == -1) && PyErr_Occurred()) { in msvcrt_open_osfhandle()
165 if ((_return_value == NULL || _return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { in msvcrt_get_osfhandle()
193 if ((_return_value == -1) && PyErr_Occurred()) { in msvcrt_kbhit()
445 if ((_return_value == NULL || _return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { in msvcrt_CrtSetReportFile()
485 if ((_return_value == -1) && PyErr_Occurred()) { in msvcrt_CrtSetReportMode()
523 if ((_return_value == -1) && PyErr_Occurred()) { in msvcrt_set_error_mode()
/external/python/cpython3/Doc/c-api/
Dlong.rst14 distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
140 Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
154 Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
169 Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
183 Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
200 Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
216 Use :c:func:`PyErr_Occurred` to disambiguate.
232 Use :c:func:`PyErr_Occurred` to disambiguate.
247 Use :c:func:`PyErr_Occurred` to disambiguate.
262 Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
[all …]
/external/python/cpython3/Modules/clinic/
D_winapi.c.h158 if ((_return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { in _winapi_CreateFile()
235 if ((_return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { in _winapi_CreateNamedPipe()
374 if ((_return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { in _winapi_DuplicateHandle()
431 if ((_return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { in _winapi_GetCurrentProcess()
466 if ((_return_value == PY_DWORD_MAX) && PyErr_Occurred()) { in _winapi_GetExitCodeProcess()
493 if ((_return_value == PY_DWORD_MAX) && PyErr_Occurred()) { in _winapi_GetLastError()
564 if ((_return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { in _winapi_GetStdHandle()
595 if ((_return_value == -1) && PyErr_Occurred()) { in _winapi_GetVersion()
630 if ((_return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { in _winapi_OpenProcess()
855 if ((_return_value == -1) && PyErr_Occurred()) { in _winapi_WaitForSingleObject()
[all …]
Dgcmodule.c.h60 if ((_return_value == -1) && PyErr_Occurred()) { in gc_isenabled()
101 if ((_return_value == -1) && PyErr_Occurred()) { in gc_collect()
167 if ((_return_value == -1) && PyErr_Occurred()) { in gc_get_debug()
320 if ((_return_value == -1) && PyErr_Occurred()) { in gc_get_freeze_count()
/external/python/cpython3/Objects/
Dabstract.c23 if (!PyErr_Occurred()) in null_error()
58 assert(len >= 0 || PyErr_Occurred()); in PyObject_Size()
94 assert(PyErr_Occurred()); in PyObject_LengthHint()
106 if (PyErr_Occurred()) { in PyObject_LengthHint()
132 if (res < 0 && PyErr_Occurred()) { in PyObject_LengthHint()
155 assert((item != NULL) ^ (PyErr_Occurred() != NULL)); in PyObject_GetItem()
164 if (key_value == -1 && PyErr_Occurred()) in PyObject_GetItem()
207 if (key_value == -1 && PyErr_Occurred()) in PyObject_SetItem()
239 if (key_value == -1 && PyErr_Occurred()) in PyObject_DelItem()
732 if (!PyErr_Occurred()) in PyObject_Format()
[all …]
Dodictobject.c671 if (!PyErr_Occurred()) in _odict_add_new_node()
754 return PyErr_Occurred() ? -1 : 0; in _odict_clear_node()
965 if (PyErr_Occurred()) in OrderedDict_setdefault_impl()
1034 if (PyErr_Occurred()) in _odict_popkey_hash()
1072 if (value == NULL && !PyErr_Occurred()) { in _odict_popkey_hash()
1204 if (!PyErr_Occurred()) in odict_copy()
1279 if (!PyErr_Occurred()) in OrderedDict_move_to_end_impl()
1411 if (!PyErr_Occurred()) in odict_repr()
1717 if (!PyErr_Occurred()) in odictiter_nextkey()
1759 if (!PyErr_Occurred()) in odictiter_iternext()
[all …]
/external/python/cpython3/Modules/_sqlite/
Dcursor.c343 if (PyErr_Occurred()) in _pysqlite_fetch_one_row()
534 if (PyErr_Occurred()) { in _pysqlite_query_execute()
540 if (PyErr_Occurred()) { in _pysqlite_query_execute()
624 if (PyErr_Occurred()) { in _pysqlite_query_execute()
696 if (PyErr_Occurred()) { in pysqlite_cursor_executescript()
722 if (PyErr_Occurred()) { in pysqlite_cursor_executescript()
776 if (PyErr_Occurred()) { in pysqlite_cursor_iternext()
805 if (!row && !PyErr_Occurred()) { in pysqlite_cursor_fetchone()
847 if (PyErr_Occurred()) { in pysqlite_cursor_fetchmany()
876 if (PyErr_Occurred()) { in pysqlite_cursor_fetchall()
/external/python/cpython2/Modules/_sqlite/
Dconnection.c162 if (PyErr_Occurred()) { in pysqlite_connection_init()
446 if (rc != SQLITE_OK && !PyErr_Occurred()) { in _pysqlite_connection_begin()
451 if (PyErr_Occurred()) { in _pysqlite_connection_begin()
489 if (rc != SQLITE_OK && !PyErr_Occurred()) { in pysqlite_connection_commit()
496 if (PyErr_Occurred()) { in pysqlite_connection_commit()
535 if (rc != SQLITE_OK && !PyErr_Occurred()) { in pysqlite_connection_rollback()
542 if (PyErr_Occurred()) { in pysqlite_connection_rollback()
559 if (value == -1 && PyErr_Occurred()) in _pysqlite_set_result()
712 if (PyErr_Occurred()) { in _pysqlite_step_callback()
949 if (rc == -1 && PyErr_Occurred()) in _authorizer_callback()
[all …]
/external/tensorflow/tensorflow/python/platform/
Dbase.i96 return static_cast<bool>(!PyErr_Occurred()); in tf_vector_input_helper()
140 if (!PyErr_Occurred())
149 if (!PyErr_Occurred())
183 if (PyErr_Occurred()) return NULL;
/external/tensorflow/tensorflow/python/lib/core/
Dpy_seq_tensor.cc124 if (PyErr_Occurred()) { in SampleElementFromSequence()
130 if (PyErr_Occurred()) { in SampleElementFromSequence()
167 if (PyErr_Occurred()) { in InferShapeAndType()
355 if (PyErr_Occurred()) { in ConvertOneFloat()
384 if (PyErr_Occurred()) return ErrorOutOfRangeDouble; in ConvertOneFloat()
389 if (PyErr_Occurred()) { in ConvertOneFloat()
400 if (PyErr_Occurred()) { in ConvertOneFloat()

12345678910>>...15