summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2011-04-22 14:34:49 -0700
committerMark Wiebe <mwwiebe@gmail.com>2011-04-22 14:34:49 -0700
commitdeb290356248b39176518b2b22af743e11e91496 (patch)
tree6b7b6e56643153a63dbcbb43ef71564cfbe8e38d
parent0a0ff695f9806e3f4475456bf70f1a789aee7a57 (diff)
downloadnumpy-deb290356248b39176518b2b22af743e11e91496.tar.gz
STY: Add comment about errobj reference ownership
-rw-r--r--numpy/core/src/umath/ufunc_object.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c
index 471700dc0..110d300fc 100644
--- a/numpy/core/src/umath/ufunc_object.c
+++ b/numpy/core/src/umath/ufunc_object.c
@@ -442,7 +442,11 @@ _extract_pyvals(PyObject *ref, char *name, int *bufsize,
-/*UFUNC_API*/
+/*UFUNC_API
+ *
+ * On return, if errobj is populated with a non-NULL value, the caller
+ * owns a new reference to errobj.
+ */
NPY_NO_EXPORT int
PyUFunc_GetPyValues(char *name, int *bufsize, int *errmask, PyObject **errobj)
{