From: Fred Drake Date: Tue, 24 Sep 2002 16:45:16 +0000 (+0000) Subject: Clarify documentation for PyErr_SetObject() to describe the reference X-Git-Tag: v2.3c1~3996 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f93644c1dc0a513e70b86a66a052bda2d800120;p=python Clarify documentation for PyErr_SetObject() to describe the reference count behavior. --- diff --git a/Doc/api/exceptions.tex b/Doc/api/exceptions.tex index 80f1353f6d..88bf00d102 100644 --- a/Doc/api/exceptions.tex +++ b/Doc/api/exceptions.tex @@ -124,7 +124,7 @@ for each thread. \begin{cfuncdesc}{void}{PyErr_SetObject}{PyObject *type, PyObject *value} This function is similar to \cfunction{PyErr_SetString()} but lets you specify an arbitrary Python object for the ``value'' of the - exception. You need not increment its reference count. + exception. One reference to \var{value} is stolen. \end{cfuncdesc} \begin{cfuncdesc}{PyObject*}{PyErr_Format}{PyObject *exception,