mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
[3.12] gh-111178: Docs: fix traverseproc, inquiry, and destructor parameters in slot typedefs table (GH-112742) (GH-112792)
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 00cce0fe49)
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
This commit is contained in:
parent
7527cdaaaf
commit
399a3f2e1e
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue