Home
last modified time | relevance | path

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

123

/third_party/boost/libs/python/src/converter/
Dfrom_python.cpp107 PyErr_SetObject(PyExc_TypeError, msg.get()); in rvalue_from_python_stage2()
214 PyErr_SetObject(PyExc_TypeError, msg.get()); in throw_no_lvalue_from_python()
238 PyErr_SetObject(PyExc_ReferenceError, msg.get()); in lvalue_result_from_python()
Dregistry.cpp84 PyErr_SetObject(PyExc_TypeError, msg.get()); in to_python()
/third_party/boost/libs/python/src/object/
Diterator.cpp35 PyErr_SetObject(PyExc_StopIteration, Py_None); in stop_iteration_error()
Dpickle_support.cpp30 PyErr_SetObject( in instance_reduce()
Dclass.cpp532 PyErr_SetObject(PyExc_RuntimeError, report.ptr()); in get_class()
Dfunction.cpp313 PyErr_SetObject(exception.get(), message.ptr()); in argument_error()
/third_party/boost/libs/mpi/src/python/
Dutility.hpp34 PyErr_SetObject(type.ptr(), object(e).ptr()); in operator ()()
/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()
/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()
/third_party/boost/libs/python/test/
Dpickle2.cpp72 PyErr_SetObject(PyExc_ValueError, in setstate()
Dpickle3.cpp75 PyErr_SetObject(PyExc_ValueError, in setstate()
/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()
/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()
/third_party/python/Include/
Dpyerrors.h12 PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
/third_party/boost/libs/python/src/numpy/
Dndarray.cpp148 PyErr_SetObject(PyExc_IndexError, Py_None); in normalize_index()
/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,

123