Home
last modified time | relevance | path

Searched refs:PyErr_Format (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/external/python/cpython3/Objects/
Dmoduleobject.c194 PyErr_Format( in _PyModule_CreateInitialized()
271 PyErr_Format( in PyModule_FromDefAndSpec2()
281 PyErr_Format( in PyModule_FromDefAndSpec2()
289 PyErr_Format( in PyModule_FromDefAndSpec2()
303 PyErr_Format( in PyModule_FromDefAndSpec2()
311 PyErr_Format(PyExc_SystemError, in PyModule_FromDefAndSpec2()
329 PyErr_Format( in PyModule_FromDefAndSpec2()
336 PyErr_Format( in PyModule_FromDefAndSpec2()
417 PyErr_Format( in PyModule_ExecDef()
425 PyErr_Format( in PyModule_ExecDef()
[all …]
Dobject.c417 PyErr_Format(PyExc_TypeError, in PyObject_Print()
541 PyErr_Format(PyExc_TypeError, in PyObject_Repr()
595 PyErr_Format(PyExc_TypeError, in PyObject_Str()
656 PyErr_Format(PyExc_TypeError, in PyObject_Bytes()
744 PyErr_Format(PyExc_TypeError, in do_richcompare()
807 PyErr_Format(PyExc_TypeError, "unhashable type: '%.200s'", in PyObject_HashNotImplemented()
932 PyErr_Format(PyExc_TypeError, in PyObject_GetAttr()
945 PyErr_Format(PyExc_AttributeError, in PyObject_GetAttr()
957 PyErr_Format(PyExc_TypeError, in _PyObject_LookupAttr()
1033 PyErr_Format(PyExc_TypeError, in PyObject_SetAttr()
[all …]
Ddescrobject.c80 PyErr_Format(PyExc_TypeError, in descr_check()
101 PyErr_Format(PyExc_TypeError, in classmethod_get()
110 PyErr_Format(PyExc_TypeError, in classmethod_get()
119 PyErr_Format(PyExc_TypeError, in classmethod_get()
167 PyErr_Format(PyExc_AttributeError, in getset_get()
190 PyErr_Format(PyExc_TypeError, in descr_setcheck()
222 PyErr_Format(PyExc_AttributeError, in getset_set()
248 PyErr_Format(PyExc_TypeError, in method_check_args()
258 PyErr_Format(PyExc_TypeError, in method_check_args()
266 PyErr_Format(PyExc_TypeError, in method_check_args()
[all …]
Dcall.c32 PyErr_Format(PyExc_SystemError, in _Py_CheckFunctionResult()
36 PyErr_Format(PyExc_SystemError, in _Py_CheckFunctionResult()
125 PyErr_Format(PyExc_TypeError, "'%.200s' object is not callable", in _PyObject_MakeTpCall()
180 PyErr_Format(PyExc_TypeError, "'%.200s' object does not support vectorcall", in PyVectorcall_Call()
186 PyErr_Format(PyExc_TypeError, "'%.200s' object does not support vectorcall", in PyVectorcall_Call()
237 PyErr_Format(PyExc_TypeError, "'%.200s' object is not callable", in PyObject_Call()
478 PyErr_Format(PyExc_TypeError, in _PyMethodDef_RawFastCallDict()
493 PyErr_Format(PyExc_TypeError, in _PyMethodDef_RawFastCallDict()
568 PyErr_Format(PyExc_TypeError, in _PyMethodDef_RawFastCallDict()
629 PyErr_Format(PyExc_TypeError, in _PyMethodDef_RawFastCallKeywords()
[all …]
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.cc48 PyErr_Format(PyExc_ValueError, \
56 PyErr_Format(PyExc_ValueError, "Invalid node index"); \
237 PyErr_Format(PyExc_ValueError, "Shape should be 1D instead of %d.", in ResizeInputTensor()
243 PyErr_Format(PyExc_ValueError, "Shape must be type int32 (was %d).", in ResizeInputTensor()
277 PyErr_Format(PyExc_ValueError, "Tensor with no type found."); in TensorType()
283 PyErr_Format(PyExc_ValueError, "Invalid tflite type code %d", code); in TensorType()
295 PyErr_Format(PyExc_ValueError, "Tensor with no shape found."); in TensorSize()
378 PyErr_Format(PyExc_ValueError, in SetTensor()
388 PyErr_Format(PyExc_ValueError, in SetTensor()
398 PyErr_Format(PyExc_ValueError, in SetTensor()
[all …]
/external/python/cpython2/Modules/_io/
Dstringio.c235 PyErr_Format(PyExc_TypeError, "integer argument expected, got '%s'", in stringio_read()
305 PyErr_Format(PyExc_TypeError, "integer argument expected, got '%s'", in stringio_readline()
329 PyErr_Format(PyExc_IOError, in stringio_iternext()
377 PyErr_Format(PyExc_TypeError, "integer argument expected, got '%s'", in stringio_truncate()
383 PyErr_Format(PyExc_ValueError, in stringio_truncate()
424 PyErr_Format(PyExc_ValueError, in stringio_seek()
429 PyErr_Format(PyExc_ValueError, in stringio_seek()
467 PyErr_Format(PyExc_TypeError, "unicode argument expected, got '%s'", in stringio_write()
568 PyErr_Format(PyExc_ValueError, in stringio_init()
573 PyErr_Format(PyExc_TypeError, in stringio_init()
[all …]
Dbytesio.c249 PyErr_Format(PyExc_TypeError, "integer argument expected, got '%s'", in bytesio_read()
318 PyErr_Format(PyExc_TypeError, "integer argument expected, got '%s'", in bytesio_readline()
364 PyErr_Format(PyExc_TypeError, "integer argument expected, got '%s'", in bytesio_readlines()
456 PyErr_Format(PyExc_TypeError, "integer argument expected, got '%s'", in bytesio_truncate()
462 PyErr_Format(PyExc_ValueError, in bytesio_truncate()
518 PyErr_Format(PyExc_ValueError, in bytesio_seek()
543 PyErr_Format(PyExc_ValueError, in bytesio_seek()
684 PyErr_Format(PyExc_TypeError, in bytesio_setstate()
706 PyErr_Format(PyExc_TypeError, in bytesio_setstate()
725 PyErr_Format(PyExc_TypeError, in bytesio_setstate()
/external/python/cpython3/Python/
Dimportdl.c169 PyErr_Format( in _PyImport_LoadDynamicModuleWithSpec()
177 PyErr_Format( in _PyImport_LoadDynamicModuleWithSpec()
188 PyErr_Format(PyExc_SystemError, in _PyImport_LoadDynamicModuleWithSpec()
205 PyErr_Format( in _PyImport_LoadDynamicModuleWithSpec()
215 PyErr_Format(PyExc_SystemError, in _PyImport_LoadDynamicModuleWithSpec()
Dgetargs.c344 PyErr_Format(PyExc_TypeError, in vgetargs1_impl()
352 PyErr_Format(PyExc_TypeError, in vgetargs1_impl()
374 PyErr_Format(PyExc_TypeError, in vgetargs1_impl()
403 PyErr_Format(PyExc_SystemError, in vgetargs1_impl()
621 PyErr_Format(PyExc_TypeError, in _PyArg_BadArgument()
1239 PyErr_Format(PyExc_ValueError, in convertsimple()
1708 PyErr_Format(PyExc_TypeError, in vgetargskeywords()
1760 PyErr_Format(PyExc_TypeError, in vgetargskeywords()
1766 PyErr_Format(PyExc_TypeError, in vgetargskeywords()
1780 PyErr_Format(PyExc_SystemError, in vgetargskeywords()
[all …]
/external/tensorflow/tensorflow/lite/python/optimize/
Dcalibration_wrapper.cc122 PyErr_Format(PyExc_ValueError, in FeedTensor()
130 PyErr_Format(PyExc_ValueError, in FeedTensor()
166 PyErr_Format(PyExc_ValueError, in SetTensor()
176 PyErr_Format( in SetTensor()
185 PyErr_Format(PyExc_ValueError, in SetTensor()
195 PyErr_Format(PyExc_ValueError, in SetTensor()
291 PyErr_Format(PyExc_ValueError, "Invalid model"); in CreateWrapperCPPFromBuffer()
/external/python/cpython2/Modules/
Dpwdmodule.c110 PyErr_Format(PyExc_KeyError, in pwd_getpwuid()
116 PyErr_Format(PyExc_KeyError, in pwd_getpwuid()
119 PyErr_Format(PyExc_KeyError, in pwd_getpwuid()
140 PyErr_Format(PyExc_KeyError, in pwd_getpwnam()
D_csv.c157 PyErr_Format(error_obj, "unknown dialect"); in get_dialect_from_registry()
228 PyErr_Format(PyExc_TypeError, in _set_int()
250 PyErr_Format(PyExc_TypeError, in _set_char()
257 PyErr_Format(PyExc_TypeError, in _set_char()
278 PyErr_Format(PyExc_TypeError, in _set_str()
299 PyErr_Format(PyExc_TypeError, "bad \"quoting\" value"); in dialect_check_quoting()
592 PyErr_Format(error_obj, "field larger than field limit (%ld)", in parse_add_char()
750 PyErr_Format(error_obj, "'%c' expected after '%c'", in parse_process_char()
763PyErr_Format(error_obj, "new-line character seen in unquoted field - do you need to open the file … in parse_process_char()
820 PyErr_Format(error_obj, in Reader_iternext()
[all …]
Dlinuxaudiodev.c249 PyErr_Format(PyExc_ValueError, "expected rate >= 0, not %d", in lad_setparameters()
254 PyErr_Format(PyExc_ValueError, "expected sample size >= 0, not %d", in lad_setparameters()
259 PyErr_Format(PyExc_ValueError, "nchannels must be 1 or 2, not %d", in lad_setparameters()
268 PyErr_Format(PyExc_ValueError, "unknown audio encoding: %d", fmt); in lad_setparameters()
272 PyErr_Format(PyExc_ValueError, in lad_setparameters()
280 PyErr_Format(PyExc_ValueError, in lad_setparameters()
Dgrpmodule.c103 PyErr_Format(PyExc_KeyError, in grp_getgrgid()
106 PyErr_Format(PyExc_KeyError, in grp_getgrgid()
126 PyErr_Format(PyExc_KeyError, "getgrnam(): name not found: %s", name); in grp_getgrnam()
/external/protobuf/python/google/protobuf/pyext/
Dunknown_fields.cc57 PyErr_Format(PyExc_ValueError, in Len()
82 PyErr_Format(PyExc_ValueError, in Item()
92 PyErr_Format(PyExc_IndexError, in Item()
219 PyErr_Format(PyExc_ValueError, in GetUnknownField()
226 PyErr_Format(PyExc_ValueError, in GetUnknownField()
Ddescriptor_pool.cc225 PyErr_Format(PyExc_KeyError, "Couldn't build file for %s %.200s\n%s", in SetErrorFromCollector()
230 PyErr_Format(PyExc_KeyError, "Couldn't find %s %.200s", error_type, name); in SetErrorFromCollector()
440 PyErr_Format(PyExc_KeyError, "Couldn't build file for Extension %.d\n%s", in FindExtensionByNumber()
445 PyErr_Format(PyExc_KeyError, "Couldn't find Extension %d", number); in FindExtensionByNumber()
495 PyErr_Format(PyExc_ValueError, in AddFileDescriptor()
512 PyErr_Format(PyExc_ValueError, in AddDescriptor()
529 PyErr_Format(PyExc_ValueError, in AddEnumDescriptor()
546 PyErr_Format(PyExc_ValueError, in AddExtensionDescriptor()
563 PyErr_Format(PyExc_ValueError, in AddServiceDescriptor()
611 PyErr_Format(PyExc_TypeError, in AddSerializedFile()
Dmap_container.cc166 PyErr_Format( in PythonToMapKey()
190 PyErr_Format( in MapKeyToPython()
221 PyErr_Format( in MapValueRefToPython()
291 PyErr_Format(PyExc_ValueError, "Unknown enum value: %d", value); in PythonToMapValueRef()
298 PyErr_Format( in PythonToMapValueRef()
383 PyErr_Format(PyExc_RuntimeError, in NewScalarMapContainer()
402 PyErr_Format(PyExc_KeyError, in NewScalarMapContainer()
461 PyErr_Format(PyExc_KeyError, "Key not present in map"); in ScalarMapSetItem()
681 PyErr_Format(PyExc_ValueError, in MessageMapSetItem()
722 PyErr_Format(PyExc_KeyError, "Key not present in map"); in MessageMapSetItem()
[all …]
Drepeated_scalar_container.cc99 PyErr_Format(PyExc_IndexError, in AssignItem()
174 PyErr_Format(PyExc_ValueError, "Unknown enum value: %s", in AssignItem()
183 PyErr_Format( in AssignItem()
204 PyErr_Format(PyExc_IndexError, in Item()
269 PyErr_Format( in Item()
405 PyErr_Format(PyExc_ValueError, "Unknown enum value: %s", in Subscript()
414 PyErr_Format( in Subscript()
592 PyErr_Format( in Subscript()
644 PyErr_Format(PyExc_IndexError, "list index (%zd) out of range", index); in Subscript()
/external/python/cffi/c/
D_cffi_backend.c1040 PyErr_Format(PyExc_TypeError, "cdata '%s' is opaque", in convert_to_object()
1078 PyErr_Format(PyExc_ValueError, in convert_to_object()
1121 PyErr_Format(PyExc_SystemError, in convert_to_object()
1169 PyErr_Format(PyExc_OverflowError, "integer %s does not fit '%s'", in _convert_overflow()
1187 PyErr_Format(PyExc_TypeError, in _convert_to_char()
1210 PyErr_Format(PyExc_TypeError, in _convert_to_char16_t()
1234 PyErr_Format(PyExc_TypeError, in _convert_to_char32_t()
1247 PyErr_Format(PyExc_TypeError, in _convert_error()
1256 PyErr_Format(PyExc_TypeError, in _convert_error()
1264 PyErr_Format(PyExc_SystemError, in _convert_error()
[all …]
/external/python/cpython3/Modules/_io/
Dstringio.c414 PyErr_Format(PyExc_OSError, in stringio_iternext()
454 PyErr_Format(PyExc_ValueError, in _io_StringIO_truncate_impl()
492 PyErr_Format(PyExc_ValueError, in _io_StringIO_seek_impl()
497 PyErr_Format(PyExc_ValueError, in _io_StringIO_seek_impl()
541 PyErr_Format(PyExc_TypeError, "string argument expected, got '%s'", in _io_StringIO_write()
663 PyErr_Format(PyExc_TypeError, in _io_StringIO___init___impl()
677 PyErr_Format(PyExc_ValueError, in _io_StringIO___init___impl()
682 PyErr_Format(PyExc_TypeError, in _io_StringIO___init___impl()
858 PyErr_Format(PyExc_TypeError, in stringio_setstate()
905 PyErr_Format(PyExc_TypeError, in stringio_setstate()
[all …]
/external/python/cpython2/Objects/
Ddescrobject.c68 PyErr_Format(PyExc_TypeError, in descr_check()
89 PyErr_Format(PyExc_TypeError, in classmethod_get()
98 PyErr_Format(PyExc_TypeError, in classmethod_get()
107 PyErr_Format(PyExc_TypeError, in classmethod_get()
147 PyErr_Format(PyExc_AttributeError, in getset_get()
170 PyErr_Format(PyExc_TypeError, in descr_setcheck()
202 PyErr_Format(PyExc_AttributeError, in getset_set()
219 PyErr_Format(PyExc_TypeError, in methoddescr_call()
229 PyErr_Format(PyExc_TypeError, in methoddescr_call()
264 PyErr_Format(PyExc_TypeError, in classmethoddescr_call()
[all …]
/external/python/cpython3/Modules/_blake2/
Dblake2s_impl.c109 PyErr_Format(PyExc_ValueError, in py_blake2s_new_impl()
119 PyErr_Format(PyExc_ValueError, in py_blake2s_new_impl()
130 PyErr_Format(PyExc_ValueError, in py_blake2s_new_impl()
180 PyErr_Format(PyExc_ValueError, in py_blake2s_new_impl()
190 PyErr_Format(PyExc_ValueError, in py_blake2s_new_impl()
Dblake2b_impl.c109 PyErr_Format(PyExc_ValueError, in py_blake2b_new_impl()
119 PyErr_Format(PyExc_ValueError, in py_blake2b_new_impl()
130 PyErr_Format(PyExc_ValueError, in py_blake2b_new_impl()
180 PyErr_Format(PyExc_ValueError, in py_blake2b_new_impl()
190 PyErr_Format(PyExc_ValueError, in py_blake2b_new_impl()
/external/python/cpython3/Modules/
D_csv.c138 PyErr_Format(_csvstate_global->error_obj, "unknown dialect"); in get_dialect_from_registry()
214 PyErr_Format(PyExc_TypeError, in _set_int()
237 PyErr_Format(PyExc_TypeError, in _set_char()
244 PyErr_Format(PyExc_TypeError, in _set_char()
266 PyErr_Format(PyExc_TypeError, in _set_str()
289 PyErr_Format(PyExc_TypeError, "bad \"quoting\" value"); in dialect_check_quoting()
576 PyErr_Format(_csvstate_global->error_obj, "field larger than field limit (%ld)", in parse_add_char()
745 PyErr_Format(_csvstate_global->error_obj, "'%c' expected after '%c'", in parse_process_char()
758PyErr_Format(_csvstate_global->error_obj, "new-line character seen in unquoted field - do you need… in parse_process_char()
806 PyErr_Format(_csvstate_global->error_obj, in Reader_iternext()
[all …]
/external/python/cpython3/Modules/_sqlite/
Dstatement.c230 PyErr_Format(pysqlite_ProgrammingError, in pysqlite_statement_bind_parameters()
265PyErr_Format(pysqlite_InterfaceError, "Error binding parameter %d - probably unsupported type.", i… in pysqlite_statement_bind_parameters()
278PyErr_Format(pysqlite_ProgrammingError, "Binding %d has no name, but you supplied a dictionary (wh… in pysqlite_statement_bind_parameters()
296PyErr_Format(pysqlite_ProgrammingError, "You did not supply a value for binding %d.", i); in pysqlite_statement_bind_parameters()
316PyErr_Format(pysqlite_InterfaceError, "Error binding parameter :%s - probably unsupported type.", … in pysqlite_statement_bind_parameters()

12345678910>>...13