]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarify documentation for PyErr_SetObject() to describe the reference
authorFred Drake <fdrake@acm.org>
Tue, 24 Sep 2002 16:44:56 +0000 (16:44 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 24 Sep 2002 16:44:56 +0000 (16:44 +0000)
count behavior.

Doc/api/exceptions.tex

index 046130d04528cde0fe521ac9f29eb6e70440b679..b2d5f1aacc7ce7998c86cce2ca6b9f2e7de31f6f 100644 (file)
@@ -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,