Home
last modified time | relevance | path

Searched refs:PyErr_SetObject (Results 1 – 25 of 44) sorted by relevance

12

/third_party/python/Python/
Dcodecs.c668 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_StrictErrors()
1156 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogatePassErrors()
1174 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogatePassErrors()
1235 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogatePassErrors()
1271 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogatePassErrors()
1314 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogateEscapeErrors()
1348 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogateEscapeErrors()
Dcontext.c538 PyErr_SetObject(PyExc_KeyError, key); in context_tp_subscript()
770 PyErr_SetObject(PyExc_LookupError, (PyObject *)var); in contextvar_del()
987 PyErr_SetObject(PyExc_LookupError, (PyObject *)self); in _contextvars_ContextVar_get_impl()
D_warnings.c689 PyErr_SetObject(category, message); in warn_explicit()
Derrors.c193 PyErr_SetObject(PyObject *exception, PyObject *value) in PyErr_SetObject() function
/third_party/python/Objects/
Dodictobject.c674 PyErr_SetObject(PyExc_KeyError, key); in _odict_add_new_node()
1128 PyErr_SetObject(PyExc_KeyError, key); in _odict_popkey_hash()
1255 PyErr_SetObject(PyExc_KeyError, key); in odict_copy()
1323 PyErr_SetObject(PyExc_KeyError, key); in OrderedDict_move_to_end_impl()
1331 PyErr_SetObject(PyExc_KeyError, key); in OrderedDict_move_to_end_impl()
1450 PyErr_SetObject(PyExc_KeyError, key); in odict_repr()
1755 PyErr_SetObject(PyExc_KeyError, di->di_current); in odictiter_nextkey()
1797 PyErr_SetObject(PyExc_KeyError, key); in odictiter_iternext()
Dgenobject.c596 PyErr_SetObject(PyExc_StopIteration, value); in _PyGen_SetStopIterationValue()
612 PyErr_SetObject(PyExc_StopIteration, e); in _PyGen_SetStopIterationValue()
Dlistobject.c238 PyErr_SetObject(PyExc_IndexError, indexerr); in PyList_GetItem()
449 PyErr_SetObject(PyExc_IndexError, indexerr); in list_item()
/third_party/python/Parser/
Dpegen_errors.c39 PyErr_SetObject(PyExc_SyntaxError, tuple); in _PyPegen_raise_tokenizer_init_error()
367 PyErr_SetObject(errtype, value); in _PyPegen_raise_error_known_location()
Dpegen.c327 PyErr_SetObject(PyExc_SyntaxError, tuple); in raise_tokenizer_init_error()
547 PyErr_SetObject(errtype, value); in _PyPegen_raise_error_known_location()
/third_party/python/Modules/
D_dbmmodule.c142 PyErr_SetObject(PyExc_KeyError, key); in dbm_subscript()
178 PyErr_SetObject(PyExc_KeyError, v); in dbm_ass_sub()
D_gdbmmodule.c202 PyErr_SetObject(PyExc_KeyError, key); in gdbm_subscript()
254 PyErr_SetObject(PyExc_KeyError, v); in gdbm_ass_sub()
D_tkinter.c341 PyErr_SetObject(Tkinter_TclError, res); in Tkinter_Error()
1583 PyErr_SetObject(Tkinter_TclError, exc_value); in Tkapp_Call()
1857 PyErr_SetObject(exc_type, exc_val); in var_invoke()
D_json.c336 PyErr_SetObject(JSONDecodeError, exc); in raise_errmsg()
346 PyErr_SetObject(PyExc_StopIteration, value); in raise_stop_iteration()
D_asynciomodule.c623 PyErr_SetObject(asyncio_CancelledError, exc); in future_set_cancelled_error()
849 PyErr_SetObject(PyExceptionInstance_Class(result), result); in _asyncio_Future_result_impl()
/third_party/python/Include/
Dpyerrors.h12 PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
/third_party/python/Modules/_ctypes/
Dcallproc.c1034 PyErr_SetObject(exc_class, s); in _ctypes_extend_error()
1098 PyErr_SetObject(ComError, obj); in GetComError()
/third_party/python/Doc/c-api/
Dexceptions.rst106 .. c:function:: void PyErr_SetObject(PyObject *type, PyObject *value)
131 This is a shorthand for ``PyErr_SetObject(type, Py_None)``.
156 and then calls ``PyErr_SetObject(type, object)``. On Unix, when the
197 :c:func:`FormatMessage`), and then calls ``PyErr_SetObject(PyExc_WindowsError,
/third_party/python/Modules/_sqlite/
Dcursor.c353 PyErr_SetObject(pysqlite_OperationalError, error_msg); in _pysqlite_fetch_one_row()
/third_party/python/Objects/stringlib/
Dunicode_format.h417 PyErr_SetObject(PyExc_KeyError, key); in get_field_object()
/third_party/python/Doc/data/
Dstable_abi.dat159 function,PyErr_SetObject,3.2,
Drefcounts.dat712 PyErr_SetObject:void:::
713 PyErr_SetObject:PyObject*:type:+1:
714 PyErr_SetObject:PyObject*:value:+1:
/third_party/python/PC/
Dpython3dll.c223 EXPORT_FUNC(PyErr_SetObject)
/third_party/python/Misc/NEWS.d/
D3.10.0rc2.rst151 Fix bug where ``PyErr_SetObject`` hangs when the current exception has a
/third_party/protobuf/python/google/protobuf/pyext/
Dmessage.cc478 PyErr_SetObject(PyExc_AttributeError, name); in GetClassAttribute()
965 PyErr_SetObject(PyExc_KeyError, extension); in GetExtensionDescriptor()
Ddescriptor_containers.cc273 PyErr_SetObject(PyExc_KeyError, key); in Subscript()

12