[Python-checkins] cpython (3.5): note that Py_VISIT handles NULL (closes #27183)
benjamin.peterson
python-checkins at python.org
Thu Jun 2 14:36:51 EDT 2016
https://hg.python.org/cpython/rev/7c67cb3b54b4
changeset: 101602:7c67cb3b54b4
branch: 3.5
parent: 101599:ef800c30e28c
user: Benjamin Peterson <benjamin at python.org>
date: Thu Jun 02 11:35:59 2016 -0700
summary:
note that Py_VISIT handles NULL (closes #27183)
files:
Doc/c-api/gcsupport.rst | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Doc/c-api/gcsupport.rst b/Doc/c-api/gcsupport.rst
--- a/Doc/c-api/gcsupport.rst
+++ b/Doc/c-api/gcsupport.rst
@@ -126,9 +126,10 @@
.. 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)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list