File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -570,21 +570,21 @@ Accessing attributes of extension types
570
570
+-------------+------------------+-----------------------------------+
571
571
| doc | const char \* | optional docstring |
572
572
+-------------+------------------+-----------------------------------+
573
- | closure | void \* | optional function pointer, |
573
+ | closure | void \* | optional user data pointer, |
574
574
| | | providing additional data for |
575
575
| | | getter and setter |
576
576
+-------------+------------------+-----------------------------------+
577
577
578
578
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 ``)::
580
580
581
581
typedef PyObject *(*getter)(PyObject *, void *);
582
582
583
583
It should return a new reference on success or ``NULL `` with a set exception
584
584
on failure.
585
585
586
586
``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 ``)::
588
588
589
589
typedef int (*setter)(PyObject *, PyObject *, void *);
590
590
You can’t perform that action at this time.
0 commit comments