Skip to content

Commit c67a4b6

Browse files
[3.11] Fix the PyGetSetDef documentation (GH-116056) (GH-116368)
(cherry picked from commit df59401)
1 parent 1b9f0d1 commit c67a4b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/c-api/structures.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,21 +570,21 @@ Accessing attributes of extension types
570570
+-------------+------------------+-----------------------------------+
571571
| doc | const char \* | optional docstring |
572572
+-------------+------------------+-----------------------------------+
573-
| closure | void \* | optional function pointer, |
573+
| closure | void \* | optional user data pointer, |
574574
| | | providing additional data for |
575575
| | | getter and setter |
576576
+-------------+------------------+-----------------------------------+
577577
578578
The ``get`` function takes one :c:expr:`PyObject*` parameter (the
579-
instance) and a function pointer (the associated ``closure``)::
579+
instance) and a user data pointer (the associated ``closure``)::
580580
581581
typedef PyObject *(*getter)(PyObject *, void *);
582582
583583
It should return a new reference on success or ``NULL`` with a set exception
584584
on failure.
585585
586586
``set`` functions take two :c:expr:`PyObject*` parameters (the instance and
587-
the value to be set) and a function pointer (the associated ``closure``)::
587+
the value to be set) and a user data pointer (the associated ``closure``)::
588588
589589
typedef int (*setter)(PyObject *, PyObject *, void *);
590590

0 commit comments

Comments
 (0)