From: Benjamin Peterson Date: Thu, 2 Jun 2016 18:35:59 +0000 (-0700) Subject: note that Py_VISIT handles NULL (closes #27183) X-Git-Tag: v3.5.2rc1~87 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a49ccf2113085f74f4ce6a84c19f2aaaff9f5978;p=thirdparty%2FPython%2Fcpython.git note that Py_VISIT handles NULL (closes #27183) --- diff --git a/Doc/c-api/gcsupport.rst b/Doc/c-api/gcsupport.rst index 9f6ad8522609..f5e0d7ec9c79 100644 --- a/Doc/c-api/gcsupport.rst +++ b/Doc/c-api/gcsupport.rst @@ -126,9 +126,10 @@ must name its arguments exactly *visit* and *arg*: .. c:function:: void Py_VISIT(PyObject *o) - Call the *visit* callback, with arguments *o* and *arg*. If *visit* returns - a non-zero value, then return it. Using this macro, :c:member:`~PyTypeObject.tp_traverse` - handlers look like:: + If *o* is not *NULL*, call the *visit* callback, with arguments *o* + and *arg*. If *visit* returns a non-zero value, then return it. + Using this macro, :c:member:`~PyTypeObject.tp_traverse` handlers + look like:: static int my_traverse(Noddy *self, visitproc visit, void *arg)