mirror of https://github.com/python/cpython
Ok, read the source this time: PyErr_SetObject() does not steal a reference.
This commit is contained in:
parent
5ec22f2d7b
commit
111ee3208f
|
@ -124,7 +124,7 @@ for each thread.
|
||||||
\begin{cfuncdesc}{void}{PyErr_SetObject}{PyObject *type, PyObject *value}
|
\begin{cfuncdesc}{void}{PyErr_SetObject}{PyObject *type, PyObject *value}
|
||||||
This function is similar to \cfunction{PyErr_SetString()} but lets
|
This function is similar to \cfunction{PyErr_SetString()} but lets
|
||||||
you specify an arbitrary Python object for the ``value'' of the
|
you specify an arbitrary Python object for the ``value'' of the
|
||||||
exception. One reference to \var{value} is stolen.
|
exception.
|
||||||
\end{cfuncdesc}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
\begin{cfuncdesc}{PyObject*}{PyErr_Format}{PyObject *exception,
|
\begin{cfuncdesc}{PyObject*}{PyErr_Format}{PyObject *exception,
|
||||||
|
|
Loading…
Reference in New Issue