Skip to content

Commit 00cce0f

Browse files
authored
gh-111178: Docs: fix traverseproc, inquiry, and destructor parameters in slot typedefs table (GH-112742)
In the slot typedefs table, the parameter of `destructor` and the first parameter of `traverseproc` should both be `PyObject *` rather than `void *`. Same for `inquiry`.
1 parent e3f670e commit 00cce0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/c-api/typeobj.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,13 @@ slot typedefs
343343
| | :c:type:`PyTypeObject` * | |
344344
| | :c:type:`Py_ssize_t` | |
345345
+-----------------------------+-----------------------------+----------------------+
346-
| :c:type:`destructor` | void * | void |
346+
| :c:type:`destructor` | :c:type:`PyObject` * | void |
347347
+-----------------------------+-----------------------------+----------------------+
348348
| :c:type:`freefunc` | void * | void |
349349
+-----------------------------+-----------------------------+----------------------+
350350
| :c:type:`traverseproc` | .. line-block:: | int |
351351
| | | |
352-
| | void * | |
352+
| | :c:type:`PyObject` * | |
353353
| | :c:type:`visitproc` | |
354354
| | void * | |
355355
+-----------------------------+-----------------------------+----------------------+
@@ -426,7 +426,7 @@ slot typedefs
426426
| | :c:type:`PyObject` * | |
427427
| | :c:type:`Py_buffer` * | |
428428
+-----------------------------+-----------------------------+----------------------+
429-
| :c:type:`inquiry` | void * | int |
429+
| :c:type:`inquiry` | :c:type:`PyObject` * | int |
430430
+-----------------------------+-----------------------------+----------------------+
431431
| :c:type:`unaryfunc` | .. line-block:: | :c:type:`PyObject` * |
432432
| | | |

0 commit comments

Comments
 (0)