Skip to content
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
Apply suggestions from code review
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
corona10 and AlexWaygood authored Dec 13, 2023
commit 0eaa5d7c08ecf9125369e640c7b1111213194615
6 changes: 3 additions & 3 deletions development-tools/clinic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2002,11 +2002,11 @@ The generated glue code looks like this:

.. _clinic-howto-pygetsetdef:

How to declare ``PyGetSetDef`` functions
----------------------------------------
How to declare ``PyGetSetDef`` ("getter/setter") functions
----------------------------------------------------------

"Getters" and "setters" are C functions defined in a :c:type:`PyGetSetDef` struct
that facilitate property-like access for a class.
that facilitate :py:class:`property`-like access for a class.
You can use the ``@getter`` and ``@setter`` directives to generate
"impl" functions for these.

Expand Down