Home
last modified time | relevance | path

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

1234

/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()
/external/python/cpython3/Python/
Derrors.c83 PyErr_SetObject(PyObject *exception, PyObject *value) in PyErr_SetObject() function
156 PyErr_SetObject(PyExc_KeyError, tup); in _PyErr_SetKeyError()
163 PyErr_SetObject(exception, (PyObject *)NULL); in PyErr_SetNone()
170 PyErr_SetObject(exception, value); in PyErr_SetString()
574 PyErr_SetObject((PyObject *) Py_TYPE(v), v); in PyErr_SetFromErrnoWithFilenameObjects()
677 PyErr_SetObject((PyObject *) Py_TYPE(v), v); in PyErr_SetExcFromWindowsErrWithFilenameObjects()
790 PyErr_SetObject((PyObject *)Py_TYPE(error), error); in PyErr_SetImportErrorSubclass()
837 PyErr_SetObject(exception, string); in PyErr_FormatV()
Dcodecs.c671 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_StrictErrors()
1160 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogatePassErrors()
1178 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogatePassErrors()
1239 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogatePassErrors()
1275 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogatePassErrors()
1318 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogateEscapeErrors()
1352 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogateEscapeErrors()
Dcontext.c508 PyErr_SetObject(PyExc_KeyError, key); in context_tp_subscript()
723 PyErr_SetObject(PyExc_LookupError, (PyObject *)var); in contextvar_del()
932 PyErr_SetObject(PyExc_LookupError, (PyObject *)self); in _contextvars_ContextVar_get_impl()
/external/python/cpython3/Objects/
Dodictobject.c672 PyErr_SetObject(PyExc_KeyError, key); in _odict_add_new_node()
1078 PyErr_SetObject(PyExc_KeyError, key); in _odict_popkey_hash()
1205 PyErr_SetObject(PyExc_KeyError, key); in odict_copy()
1272 PyErr_SetObject(PyExc_KeyError, key); in OrderedDict_move_to_end_impl()
1280 PyErr_SetObject(PyExc_KeyError, key); in OrderedDict_move_to_end_impl()
1412 PyErr_SetObject(PyExc_KeyError, key); in odict_repr()
1718 PyErr_SetObject(PyExc_KeyError, di->di_current); in odictiter_nextkey()
1760 PyErr_SetObject(PyExc_KeyError, key); in odictiter_iternext()
Dgenobject.c560 PyErr_SetObject(PyExc_StopIteration, value); in _PyGen_SetStopIterationValue()
576 PyErr_SetObject(PyExc_StopIteration, e); in _PyGen_SetStopIterationValue()
/external/python/cpython3/Modules/
Dparsermodule.c838 PyErr_SetObject(parser_error, err); in build_node_children()
918 PyErr_SetObject(parser_error, err); in build_node_children()
972 PyErr_SetObject(parser_error, tuple); in build_node_tree()
1041 PyErr_SetObject(parser_error, err); in build_node_tree()
D_dbmmodule.c115 PyErr_SetObject(PyExc_KeyError, key); in dbm_subscript()
146 PyErr_SetObject(PyExc_KeyError, v); in dbm_ass_sub()
D_gdbmmodule.c138 PyErr_SetObject(PyExc_KeyError, key); in dbm_subscript()
189 PyErr_SetObject(PyExc_KeyError, v); in dbm_ass_sub()
Dpyexpat.c128 PyErr_SetObject(ErrorObject, err); in set_error()
1486 PyErr_SetObject(PyExc_AttributeError, name); in xmlparse_setattro()
/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()
/external/protobuf/python/google/protobuf/pyext/
Dextension_dict.cc116 PyErr_SetObject(PyExc_KeyError, key); in subscript()
/external/python/cpython2/PC/os2vacpp/
Dpython.def152 PyErr_SetObject
/external/python/cpython2/Include/
Dpyerrors.h77 PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
/external/python/cpython2/Modules/_multiprocessing/
Dconnection.h239 PyErr_SetObject(BufferTooShort, result); in connection_recvbytes_into()
/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,
/external/python/cpython3/Include/
Dpyerrors.h78 PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
/external/python/cpython3/Modules/_ctypes/
Dcallproc.c974 PyErr_SetObject(exc_class, s); in _ctypes_extend_error()
1038 PyErr_SetObject(ComError, obj); in GetComError()
/external/python/cpython3/Doc/c-api/
Dexceptions.rst101 .. c:function:: void PyErr_SetObject(PyObject *type, PyObject *value)
126 This is a shorthand for ``PyErr_SetObject(type, Py_None)``.
151 and then calls ``PyErr_SetObject(type, object)``. On Unix, when the
192 :c:func:`FormatMessage`), and then calls ``PyErr_SetObject(PyExc_WindowsError,
/external/python/cpython2/Modules/_ctypes/
Dcallproc.c991 PyErr_SetObject(exc_class, s); in _ctypes_extend_error()
1063 PyErr_SetObject(ComError, obj); in GetComError()
/external/python/cpython3/PC/
Dpython3.def153 PyErr_SetObject=python37.PyErr_SetObject
/external/python/cpython2/Doc/data/
Drefcounts.dat334 PyErr_SetObject:void:::
335 PyErr_SetObject:PyObject*:type:+1:
336 PyErr_SetObject:PyObject*:value:+1:

1234