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 @@ -702,20 +702,20 @@ Defining Getters and Setters
702
702
703
703
.. c :member :: void * closure
704
704
705
- Optional function pointer, providing additional data for getter and setter.
705
+ Optional user data pointer, providing additional data for getter and setter.
706
706
707
707
.. c :type :: PyObject *(*getter)(PyObject *, void *)
708
708
709
709
The ``get `` function takes one :c:expr: `PyObject* ` parameter (the
710
- instance) and a function pointer (the associated ``closure ``):
710
+ instance) and a user data pointer (the associated ``closure ``):
711
711
712
712
It should return a new reference on success or ``NULL `` with a set exception
713
713
on failure.
714
714
715
715
.. c :type :: int (*setter)(PyObject *, PyObject *, void *)
716
716
717
717
``set `` functions take two :c:expr: `PyObject* ` parameters (the instance and
718
- the value to be set) and a function pointer (the associated ``closure ``):
718
+ the value to be set) and a user data pointer (the associated ``closure ``):
719
719
720
720
In case the attribute should be deleted the second parameter is ``NULL ``.
721
721
Should return ``0 `` on success or ``-1 `` with a set exception on failure.
You can’t perform that action at this time.
0 commit comments