Home
last modified time | relevance | path

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

12345678910>>...18

/external/python/cpython3/Python/
Dstructmember.c140 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
151 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
160 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
169 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
178 if ((long_val == -1) && PyErr_Occurred()) in PyMember_SetOne()
187 if ((ulong_val == (unsigned long)-1) && PyErr_Occurred()) { in PyMember_SetOne()
193 PyErr_Occurred()) in PyMember_SetOne()
205 if ((*(long*)addr == -1) && PyErr_Occurred()) in PyMember_SetOne()
212 && PyErr_Occurred()) { in PyMember_SetOne()
218 && PyErr_Occurred()) in PyMember_SetOne()
[all …]
Dmarshal.c680 if (!PyErr_Occurred()) { in r_string()
775 if (PyErr_Occurred()) in r_PyLong()
797 if (PyErr_Occurred()) { in r_PyLong()
811 if (PyErr_Occurred()) { in r_PyLong()
826 if (PyErr_Occurred()) { in r_PyLong()
993 retval = PyErr_Occurred() ? NULL : PyLong_FromLong(n); in r_object()
1010 if (x == -1.0 && PyErr_Occurred()) in r_object()
1020 if (x == -1.0 && PyErr_Occurred()) in r_object()
1031 if (c.real == -1.0 && PyErr_Occurred()) in r_object()
1034 if (c.imag == -1.0 && PyErr_Occurred()) in r_object()
[all …]
/external/tensorflow/tensorflow/python/util/
Dutil_wrapper.cc42 if (PyErr_Occurred()) { in PYBIND11_MODULE()
70 if (PyErr_Occurred()) { in PYBIND11_MODULE()
89 if (PyErr_Occurred()) { in PYBIND11_MODULE()
107 if (PyErr_Occurred()) { in PYBIND11_MODULE()
134 if (PyErr_Occurred()) { in PYBIND11_MODULE()
152 if (PyErr_Occurred()) { in PYBIND11_MODULE()
170 if (PyErr_Occurred()) { in PYBIND11_MODULE()
188 if (PyErr_Occurred()) { in PYBIND11_MODULE()
217 if (PyErr_Occurred()) { in PYBIND11_MODULE()
265 if (PyErr_Occurred()) { in PYBIND11_MODULE()
[all …]
/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 …]
/external/python/cpython3/Modules/clinic/
Dcmathmodule.c.h25 if (PyErr_Occurred()) { in cmath_acos()
67 if (PyErr_Occurred()) { in cmath_acosh()
109 if (PyErr_Occurred()) { in cmath_asin()
151 if (PyErr_Occurred()) { in cmath_asinh()
193 if (PyErr_Occurred()) { in cmath_atan()
235 if (PyErr_Occurred()) { in cmath_atanh()
277 if (PyErr_Occurred()) { in cmath_cos()
319 if (PyErr_Occurred()) { in cmath_cosh()
361 if (PyErr_Occurred()) { in cmath_exp()
403 if (PyErr_Occurred()) { in cmath_log10()
[all …]
Dmathmodule.c.h96 if (x == -1.0 && PyErr_Occurred()) { in math_frexp()
136 if (x == -1.0 && PyErr_Occurred()) { in math_ldexp()
173 if (x == -1.0 && PyErr_Occurred()) { in math_modf()
274 if (x == -1.0 && PyErr_Occurred()) { in math_fmod()
284 if (y == -1.0 && PyErr_Occurred()) { in math_fmod()
358 if (x == -1.0 && PyErr_Occurred()) { in math_pow()
368 if (y == -1.0 && PyErr_Occurred()) { in math_pow()
402 if (x == -1.0 && PyErr_Occurred()) { in math_degrees()
436 if (x == -1.0 && PyErr_Occurred()) { in math_radians()
470 if (x == -1.0 && PyErr_Occurred()) { in math_isfinite()
[all …]
Daudioop.c.h42 if (width == -1 && PyErr_Occurred()) { in audioop_getsample()
57 if (ival == -1 && PyErr_Occurred()) { in audioop_getsample()
108 if (width == -1 && PyErr_Occurred()) { in audioop_max()
157 if (width == -1 && PyErr_Occurred()) { in audioop_minmax()
206 if (width == -1 && PyErr_Occurred()) { in audioop_avg()
255 if (width == -1 && PyErr_Occurred()) { in audioop_rms()
415 if (ival == -1 && PyErr_Occurred()) { in audioop_findmax()
466 if (width == -1 && PyErr_Occurred()) { in audioop_avgpp()
515 if (width == -1 && PyErr_Occurred()) { in audioop_maxpp()
564 if (width == -1 && PyErr_Occurred()) { in audioop_cross()
[all …]
Dsignalmodule.c.h32 if (seconds == -1 && PyErr_Occurred()) { in signal_alarm()
36 if ((_return_value == -1) && PyErr_Occurred()) { in signal_alarm()
93 if (signalnum == -1 && PyErr_Occurred()) { in signal_raise_signal()
137 if (signalnum == -1 && PyErr_Occurred()) { in signal_signal()
177 if (signalnum == -1 && PyErr_Occurred()) { in signal_getsignal()
213 if (signalnum == -1 && PyErr_Occurred()) { in signal_strsignal()
255 if (signalnum == -1 && PyErr_Occurred()) { in signal_siginterrupt()
264 if (flag == -1 && PyErr_Occurred()) { in signal_siginterrupt()
312 if (which == -1 && PyErr_Occurred()) { in signal_setitimer()
355 if (which == -1 && PyErr_Occurred()) { in signal_getitimer()
[all …]
D_sre.c.h23 if ((_return_value == -1) && PyErr_Occurred()) { in _sre_getcodesize()
56 if (character == -1 && PyErr_Occurred()) { in _sre_ascii_iscased()
60 if ((_return_value == -1) && PyErr_Occurred()) { in _sre_ascii_iscased()
93 if (character == -1 && PyErr_Occurred()) { in _sre_unicode_iscased()
97 if ((_return_value == -1) && PyErr_Occurred()) { in _sre_unicode_iscased()
130 if (character == -1 && PyErr_Occurred()) { in _sre_ascii_tolower()
134 if ((_return_value == -1) && PyErr_Occurred()) { in _sre_ascii_tolower()
167 if (character == -1 && PyErr_Occurred()) { in _sre_unicode_tolower()
171 if ((_return_value == -1) && PyErr_Occurred()) { in _sre_unicode_tolower()
226 if (ival == -1 && PyErr_Occurred()) { in _sre_SRE_Pattern_match()
[all …]
D_statisticsmodule.c.h35 if (p == -1.0 && PyErr_Occurred()) { in _statistics__normal_dist_inv_cdf()
45 if (mu == -1.0 && PyErr_Occurred()) { in _statistics__normal_dist_inv_cdf()
55 if (sigma == -1.0 && PyErr_Occurred()) { in _statistics__normal_dist_inv_cdf()
60 if ((_return_value == -1.0) && PyErr_Occurred()) { in _statistics__normal_dist_inv_cdf()
D_cursesmodule.c.h261 if (attr == -1 && PyErr_Occurred()) { in _curses_window_bkgd()
295 if (attr == -1 && PyErr_Occurred()) { in _curses_window_attroff()
328 if (attr == -1 && PyErr_Occurred()) { in _curses_window_attron()
361 if (attr == -1 && PyErr_Occurred()) { in _curses_window_attrset()
408 if (attr == -1 && PyErr_Occurred()) { in _curses_window_bkgdset()
696 if (attr == -1 && PyErr_Occurred()) { in _curses_window_echochar()
742 if (y == -1 && PyErr_Occurred()) { in _curses_window_enclose()
751 if (x == -1 && PyErr_Occurred()) { in _curses_window_enclose()
755 if ((_return_value == -1) && PyErr_Occurred()) { in _curses_window_enclose()
785 if ((_return_value == -1) && PyErr_Occurred()) { in _curses_window_getbkgd()
[all …]
Dposixmodule.c.h196 if (mode == -1 && PyErr_Occurred()) { in os_access()
225 if ((_return_value == -1) && PyErr_Occurred()) { in os_access()
266 if (fd == -1 && PyErr_Occurred()) { in os_ttyname()
440 if (mode == -1 && PyErr_Occurred()) { in os_chmod()
504 if (fd == -1 && PyErr_Occurred()) { in os_fchmod()
513 if (mode == -1 && PyErr_Occurred()) { in os_fchmod()
564 if (mode == -1 && PyErr_Occurred()) { in os_lchmod()
961 if (fd == -1 && PyErr_Occurred()) { in os_fchown()
1362 if (mode == -1 && PyErr_Occurred()) { in os_mkdir()
1412 if (increment == -1 && PyErr_Occurred()) { in os_nice()
[all …]
Dfcntlmodule.c.h47 if (code == -1 && PyErr_Occurred()) { in fcntl_fcntl()
122 if (code == (unsigned int)-1 && PyErr_Occurred()) { in fcntl_ioctl()
177 if (code == -1 && PyErr_Occurred()) { in fcntl_flock()
242 if (code == -1 && PyErr_Occurred()) { in fcntl_lockf()
262 if (whence == -1 && PyErr_Occurred()) { in fcntl_lockf()
Dzlibmodule.c.h53 if (level == -1 && PyErr_Occurred()) { in zlib_compress()
121 if (wbits == -1 && PyErr_Occurred()) { in zlib_decompress()
209 if (level == -1 && PyErr_Occurred()) { in zlib_compressobj()
223 if (method == -1 && PyErr_Occurred()) { in zlib_compressobj()
237 if (wbits == -1 && PyErr_Occurred()) { in zlib_compressobj()
251 if (memLevel == -1 && PyErr_Occurred()) { in zlib_compressobj()
265 if (strategy == -1 && PyErr_Occurred()) { in zlib_compressobj()
334 if (wbits == -1 && PyErr_Occurred()) { in zlib_decompressobj()
492 if (mode == -1 && PyErr_Occurred()) { in zlib_Compress_flush()
692 if (value == (unsigned int)-1 && PyErr_Occurred()) { in zlib_adler32()
[all …]
Dgcmodule.c.h60 if ((_return_value == -1) && PyErr_Occurred()) { in gc_isenabled()
111 if (generation == -1 && PyErr_Occurred()) { in gc_collect()
116 if ((_return_value == -1) && PyErr_Occurred()) { in gc_collect()
160 if (flags == -1 && PyErr_Occurred()) { in gc_set_debug()
188 if ((_return_value == -1) && PyErr_Occurred()) { in gc_get_debug()
377 if ((_return_value == -1) && PyErr_Occurred()) { in gc_get_freeze_count()
Dresource.c.h28 if (who == -1 && PyErr_Occurred()) { in resource_getrusage()
60 if (resource == -1 && PyErr_Occurred()) { in resource_getrlimit()
96 if (resource == -1 && PyErr_Occurred()) { in resource_setrlimit()
169 if ((_return_value == -1) && PyErr_Occurred()) { in resource_getpagesize()
/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()
/external/python/cpython3/PC/clinic/
Dmsvcrtmodule.c.h62 if (fd == -1 && PyErr_Occurred()) { in msvcrt_locking()
71 if (mode == -1 && PyErr_Occurred()) { in msvcrt_locking()
80 if (nbytes == -1 && PyErr_Occurred()) { in msvcrt_locking()
123 if (fd == -1 && PyErr_Occurred()) { in msvcrt_setmode()
132 if (flags == -1 && PyErr_Occurred()) { in msvcrt_setmode()
136 if ((_return_value == -1) && PyErr_Occurred()) { in msvcrt_setmode()
174 if ((_return_value == -1) && PyErr_Occurred()) { in msvcrt_open_osfhandle()
210 if (fd == -1 && PyErr_Occurred()) { in msvcrt_get_osfhandle()
214 if ((_return_value == NULL || _return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { in msvcrt_get_osfhandle()
242 if ((_return_value == -1) && PyErr_Occurred()) { in msvcrt_kbhit()
[all …]
Dwinsound.c.h43 if (flags == -1 && PyErr_Occurred()) { in winsound_PlaySound()
90 if (frequency == -1 && PyErr_Occurred()) { in winsound_Beep()
99 if (duration == -1 && PyErr_Occurred()) { in winsound_Beep()
145 if (type == -1 && PyErr_Occurred()) { in winsound_MessageBeep()
/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()
/external/python/cpython3/Objects/clinic/
Dcodeobject.c.h68 if (co_argcount == -1 && PyErr_Occurred()) { in code_replace()
82 if (co_posonlyargcount == -1 && PyErr_Occurred()) { in code_replace()
96 if (co_kwonlyargcount == -1 && PyErr_Occurred()) { in code_replace()
110 if (co_nlocals == -1 && PyErr_Occurred()) { in code_replace()
124 if (co_stacksize == -1 && PyErr_Occurred()) { in code_replace()
138 if (co_flags == -1 && PyErr_Occurred()) { in code_replace()
152 if (co_firstlineno == -1 && PyErr_Occurred()) { in code_replace()
/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/Modules/_blake2/clinic/
Dblake2s_impl.c.h65 if (digest_size == -1 && PyErr_Occurred()) { in py_blake2s_new()
115 if (fanout == -1 && PyErr_Occurred()) { in py_blake2s_new()
129 if (depth == -1 && PyErr_Occurred()) { in py_blake2s_new()
159 if (node_depth == -1 && PyErr_Occurred()) { in py_blake2s_new()
173 if (inner_size == -1 && PyErr_Occurred()) { in py_blake2s_new()
Dblake2b_impl.c.h65 if (digest_size == -1 && PyErr_Occurred()) { in py_blake2b_new()
115 if (fanout == -1 && PyErr_Occurred()) { in py_blake2b_new()
129 if (depth == -1 && PyErr_Occurred()) { in py_blake2b_new()
159 if (node_depth == -1 && PyErr_Occurred()) { in py_blake2b_new()
173 if (inner_size == -1 && PyErr_Occurred()) { in py_blake2b_new()
/external/python/cpython3/Python/clinic/
Dsysmodule.c.h315 if (interval == -1.0 && PyErr_Occurred()) { in sys_setswitchinterval()
344 if ((_return_value == -1.0) && PyErr_Occurred()) { in sys_getswitchinterval()
381 if (new_limit == -1 && PyErr_Occurred()) { in sys_setrecursionlimit()
426 if (depth == -1 && PyErr_Occurred()) { in sys_set_coroutine_origin_tracking_depth()
454 if ((_return_value == -1) && PyErr_Occurred()) { in sys_get_coroutine_origin_tracking_depth()
599 if (new_val == -1 && PyErr_Occurred()) { in sys_setdlopenflags()
659 if (flag == -1 && PyErr_Occurred()) { in sys_mdebug()
693 if ((_return_value == -1) && PyErr_Occurred()) { in sys_getrefcount()
722 if ((_return_value == -1) && PyErr_Occurred()) { in sys_gettotalrefcount()
752 if ((_return_value == -1) && PyErr_Occurred()) { in sys_getallocatedblocks()
[all …]

12345678910>>...18