Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix docstrings of :attr:`~property.getter`, :attr:`~property.setter`, and :attr:`~property.deleter` to clarify that they create a new copy of the property.
6 changes: 3 additions & 3 deletions Objects/descrobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,7 @@ static PyMemberDef property_members[] = {


PyDoc_STRVAR(getter_doc,
"Descriptor to change the getter on a property.");
"Descriptor to obtain a copy of the property with a different getter.");

static PyObject *
property_getter(PyObject *self, PyObject *getter)
Expand All @@ -1520,7 +1520,7 @@ property_getter(PyObject *self, PyObject *getter)


PyDoc_STRVAR(setter_doc,
"Descriptor to change the setter on a property.");
"Descriptor to obtain a copy of the property with a different setter.");

static PyObject *
property_setter(PyObject *self, PyObject *setter)
Expand All @@ -1530,7 +1530,7 @@ property_setter(PyObject *self, PyObject *setter)


PyDoc_STRVAR(deleter_doc,
"Descriptor to change the deleter on a property.");
"Descriptor to obtain a copy of the property with a different deleter.");

static PyObject *
property_deleter(PyObject *self, PyObject *deleter)
Expand Down