8000 Add "how to" for the setter Argument Clinic directive by corona10 · Pull Request #1245 · python/devguide · GitHub
[go: up one dir, main page]

Skip to content
8000

Add "how to" for the setter Argument Clinic directive #1245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Dec 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address Alex's suggestion
  • Loading branch information
corona10 committed Dec 13, 2023
commit 6fce77ef5ba855854cc85fea75adad1674674134
2 changes: 1 addition & 1 deletion development-tools/clinic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2008,7 +2008,7 @@ How to declare ``PyGetSetDef`` ("getter/setter") functions
"Getters" and "setters" are C functions defined in a :c:type:`PyGetSetDef` struct
that facilitate :py:class:`property`-like access for a class.
You can use the ``@getter`` and ``@setter`` directives to generate
"impl" functions for these.
"impl" functions for using Argument Clinic.

This example --- taken from :cpy-file:`Modules/_io/textio.c` ---
shows the use of ``@getter`` and ``@setter`` in combination with
Expand Down
0