8000 [3.11] gh-111178: Docs: fix `traverseproc`, `inquiry`, and `destructo… · python/cpython@8be7282 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8be7282

Browse files
[3.11] gh-111178: Docs: fix traverseproc, inquiry, and destructor parameters in slot typedefs table (GH-112742) (GH-112793)
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`. (cherry picked from commit 00cce0f) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
1 parent 02d0951 commit 8be7282

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/c-api/typeobj.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,13 +341,13 @@ slot typedefs
341341
| | :c:type:`PyTypeObject` * | |
342342
| | :c:type:`Py_ssize_t` | |
343343
+-----------------------------+-----------------------------+----------------------+
344-
| :c:type:`destructor` | void * | void |
344+
| :c:type:`destructor` | :c:type:`PyObject` * | void |
345345
+-----------------------------+-----------------------------+----------------------+
346346
| :c:type:`freefunc` | void * | void |
347347
+-----------------------------+-----------------------------+----------------------+
348348
| :c:type:`traverseproc` | .. line-block:: | int |
349349
| | | |
350-
| | void * | |
350+
| | :c:type:`PyObject` * | |
351351
| | :c:type:`visitproc` | |
352352
| | void * | |
353353
+-----------------------------+-----------------------------+----------------------+
@@ -424,7 +424,7 @@ slot typedefs
424424
| | :c:type:`PyObject` * | |
425425
| | :c:type:`Py_buffer` * | |
426426
+-----------------------------+-----------------------------+----------------------+
427-
| :c:type:`inquiry` | void * | int |
427+
| :c:type:`inquiry` | :c:type:`PyObject` * | int |
428428
+-----------------------------+-----------------------------+----------------------+
429429
| :c:type:`unaryfunc` | .. line-block:: | :c:type:`PyObject` * |
430430
| | | |

0 commit comments

Comments
 (0)
0