File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Open diff view settings
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Open diff view settings
Original file line number Diff line number Diff line change @@ -702,20 +702,20 @@ Defining Getters and Setters
702702
703703 .. c :member :: void * closure
704704
705- Optional function pointer, providing additional data for getter and setter.
705+ Optional user data pointer, providing additional data for getter and setter.
706706
707707.. c :type :: PyObject *(*getter)(PyObject *, void *)
708708
709709 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 ``):
711711
712712 It should return a new reference on success or ``NULL `` with a set exception
713713 on failure.
714714
715715.. c :type :: int (*setter)(PyObject *, PyObject *, void *)
716716
717717 ``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 ``):
719719
720720 In case the attribute should be deleted the second parameter is ``NULL ``.
721721 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