gh-111178: fix incorrect function signatures in docs by picnixz · Pull Request #132395 · python/cpython
Expand Up
@@ -1161,7 +1161,8 @@ Changes in the C API
.. code-block:: c
int foo_traverse(PyObject *self, visitproc visit, void *arg) { foo_traverse(PyObject *self, visitproc visit, void *arg) { // Rest of the traverse function #if PY_VERSION_HEX >= 0x03090000 // This was not needed before Python 3.9 (Python issue 35810 and 40217) Expand Down
int foo_traverse(PyObject *self, visitproc visit, void *arg) { foo_traverse(PyObject *self, visitproc visit, void *arg) { // Rest of the traverse function #if PY_VERSION_HEX >= 0x03090000 // This was not needed before Python 3.9 (Python issue 35810 and 40217) Expand Down