mirror of https://github.com/python/cpython.git
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`.
This commit is contained in:
parent
e3f670e137
commit
00cce0fe49
|
@ -343,13 +343,13 @@ slot typedefs
|
|||
| | :c:type:`PyTypeObject` * | |
|
||||
| | :c:type:`Py_ssize_t` | |
|
||||
+-----------------------------+-----------------------------+----------------------+
|
||||
| :c:type:`destructor` | void * | void |
|
||||
| :c:type:`destructor` | :c:type:`PyObject` * | void |
|
||||
+-----------------------------+-----------------------------+----------------------+
|
||||
| :c:type:`freefunc` | void * | void |
|
||||
+-----------------------------+-----------------------------+----------------------+
|
||||
| :c:type:`traverseproc` | .. line-block:: | int |
|
||||
| | | |
|
||||
| | void * | |
|
||||
| | :c:type:`PyObject` * | |
|
||||
| | :c:type:`visitproc` | |
|
||||
| | void * | |
|
||||
+-----------------------------+-----------------------------+----------------------+
|
||||
|
@ -426,7 +426,7 @@ slot typedefs
|
|||
| | :c:type:`PyObject` * | |
|
||||
| | :c:type:`Py_buffer` * | |
|
||||
+-----------------------------+-----------------------------+----------------------+
|
||||
| :c:type:`inquiry` | void * | int |
|
||||
| :c:type:`inquiry` | :c:type:`PyObject` * | int |
|
||||
+-----------------------------+-----------------------------+----------------------+
|
||||
| :c:type:`unaryfunc` | .. line-block:: | :c:type:`PyObject` * |
|
||||
| | | |
|
||||
|
|
Loading…
Reference in New Issue