We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a5120e commit a49ccf2Copy full SHA for a49ccf2
Doc/c-api/gcsupport.rst
@@ -126,9 +126,10 @@ must name its arguments exactly *visit* and *arg*:
126
127
.. c:function:: void Py_VISIT(PyObject *o)
128
129
- Call the *visit* callback, with arguments *o* and *arg*. If *visit* returns
130
- a non-zero value, then return it. Using this macro, :c:member:`~PyTypeObject.tp_traverse`
131
- 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
132
+ look like::
133
134
static int
135
my_traverse(Noddy *self, visitproc visit, void *arg)
0 commit comments