Home
last modified time | relevance | path

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

1234

/aosp_15_r20/external/python/cpython2/Python/
Derrors.c53 PyErr_SetObject(PyObject *exception, PyObject *value) in PyErr_SetObject() function
63 PyErr_SetObject(exception, (PyObject *)NULL); in PyErr_SetNone()
70 PyErr_SetObject(exception, value); in PyErr_SetString()
302 PyErr_SetObject(PyExc_MemoryError, PyExc_MemoryErrorInst); in PyErr_NoMemory()
382 PyErr_SetObject(exc, v); in PyErr_SetFromErrnoWithFilenameObject()
462 PyErr_SetObject(exc, v); in PyErr_SetExcFromWindowsErrWithFilenameObject()
568 PyErr_SetObject(exception, string); in PyErr_Format()
Dmactoolboxglue.c96 PyErr_SetObject(eobj, v); in PyErr_Mac()
/aosp_15_r20/external/python/cpython3/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.c546 PyErr_SetObject(PyExc_KeyError, key); in context_tp_subscript()
778 PyErr_SetObject(PyExc_LookupError, (PyObject *)var); in contextvar_del()
995 PyErr_SetObject(PyExc_LookupError, (PyObject *)self); in _contextvars_ContextVar_get_impl()
/aosp_15_r20/external/python/cpython3/Objects/
Dodictobject.c674 PyErr_SetObject(PyExc_KeyError, key); in _odict_add_new_node()
1062 PyErr_SetObject(PyExc_KeyError, key); in _odict_popkey_hash()
1203 PyErr_SetObject(PyExc_KeyError, key); in odict_copy()
1271 PyErr_SetObject(PyExc_KeyError, key); in OrderedDict_move_to_end_impl()
1279 PyErr_SetObject(PyExc_KeyError, key); in OrderedDict_move_to_end_impl()
1398 PyErr_SetObject(PyExc_KeyError, key); in odict_repr()
1703 PyErr_SetObject(PyExc_KeyError, di->di_current); in odictiter_nextkey()
1745 PyErr_SetObject(PyExc_KeyError, key); in odictiter_iternext()
/aosp_15_r20/external/tensorflow/tensorflow/python/lib/core/
H A Dpybind11_status.h80 PyErr_SetObject(PyExceptionRegistry::Lookup(status.code()), in SetRegisteredErrFromStatus()
88 PyErr_SetObject(PyExceptionRegistry::Lookup(TF_GetCode(status)), in SetRegisteredErrFromTFStatus()
/aosp_15_r20/external/python/cpython2/Modules/
Dbsddbmodule.c312 PyErr_SetObject(PyExc_KeyError, key); in bsddb_subscript()
371 PyErr_SetObject(PyExc_KeyError, key); in bsddb_ass_sub()
544 PyErr_SetObject(PyExc_KeyError, key); in bsddb_set_location()
DcPickle.c417 PyErr_SetObject(ErrType,Py_None); in cPickle_ErrFormat()
420 PyErr_SetObject(ErrType,retval); in cPickle_ErrFormat()
751 PyErr_SetObject(PyExc_KeyError, id); in get()
2813 PyErr_SetObject(UnpickleableError, args); in save()
4205 PyErr_SetObject(BadPickleGet, py_str); in load_get()
4233 PyErr_SetObject(BadPickleGet, py_key); in load_binget()
4270 PyErr_SetObject(BadPickleGet, py_key); in load_long_binget()
Dparsermodule.c769 PyErr_SetObject(parser_error, err); in build_node_children()
835 PyErr_SetObject(parser_error, err); in build_node_children()
889 PyErr_SetObject(parser_error, tuple); in build_node_tree()
951 PyErr_SetObject(parser_error, err); in build_node_tree()
/aosp_15_r20/external/python/cpython3/Parser/
Dpegen_errors.c39 PyErr_SetObject(PyExc_SyntaxError, tuple); in _PyPegen_raise_tokenizer_init_error()
387 PyErr_SetObject(errtype, value); in _PyPegen_raise_error_known_location()
/aosp_15_r20/external/python/cpython3/Modules/
D_dbmmodule.c148 PyErr_SetObject(PyExc_KeyError, key); in dbm_subscript()
184 PyErr_SetObject(PyExc_KeyError, v); in dbm_ass_sub()
D_gdbmmodule.c203 PyErr_SetObject(PyExc_KeyError, key); in gdbm_subscript()
255 PyErr_SetObject(PyExc_KeyError, v); in gdbm_ass_sub()
/aosp_15_r20/external/python/cpython3/Modules/_sqlite/
Dutil.c110 PyErr_SetObject(type, exc); in raise_exception()
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/upb/python/
Ddescriptor_containers.c387 PyErr_SetObject(PyExc_KeyError, key); in PyUpb_ByNameMap_Subscript()
611 PyErr_SetObject(PyExc_KeyError, key); in PyUpb_ByNumberMap_Subscript()
/aosp_15_r20/external/python/cpython2/Doc/c-api/
Dexceptions.rst146 .. c:function:: void PyErr_SetObject(PyObject *type, PyObject *value)
162 This is a shorthand for ``PyErr_SetObject(type, Py_None)``.
187 and then calls ``PyErr_SetObject(type, object)``. On Unix, when the
218 :c:func:`FormatMessage`), and then calls ``PyErr_SetObject(PyExc_WindowsError,
/aosp_15_r20/external/python/cpython2/PC/os2vacpp/
Dpython.def152 PyErr_SetObject
/aosp_15_r20/external/python/cpython2/Include/
Dpyerrors.h77 PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/include/python3.11/
Dpyerrors.h12 PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/include/python3.11/
Dpyerrors.h12 PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
/aosp_15_r20/external/python/cpython3/Include/
Dpyerrors.h12 PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/include/python3.11/
Dpyerrors.h12 PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/include/python3.11/
Dpyerrors.h12 PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
/aosp_15_r20/external/python/cpython2/Modules/_multiprocessing/
Dconnection.h239 PyErr_SetObject(BufferTooShort, result); in connection_recvbytes_into()
/aosp_15_r20/external/python/cpython3/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,
/aosp_15_r20/external/python/cpython2/Modules/_ctypes/
Dcallproc.c991 PyErr_SetObject(exc_class, s); in _ctypes_extend_error()
1063 PyErr_SetObject(ComError, obj); in GetComError()

1234