Skip to content

Commit 008be35

Browse files
Add explanation about docstring for PyGetSetDef (gh-1248)
Co-authored-by: Ezio Melotti <[email protected]>
1 parent 4cbaee5 commit 008be35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

development-tools/clinic.rst

+2
Original file line numberDiff line numberDiff line change
@@ -2087,6 +2087,8 @@ The generated glue code looks like this:
20872087

20882088
Getters and setters must be declared as separate functions.
20892089
The *value* parameter for a "setter" is added implicitly by Argument Clinic.
2090+
It is possible to create a docstring for the property by adding it to
2091+
the ``@getter``.
20902092

20912093
And then the implementation will work the same as a Python method which is
20922094
decorated by :py:class:`property`:

0 commit comments

Comments
 (0)