mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
bpo-43721: Fix docstrings for property.getter/setter/deleter (GH-31046)
This commit is contained in:
parent
19f69993ae
commit
e3d348a525
2 changed files with 4 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
@ -1501,7 +1501,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)
|
||||
|
|
@ -1511,7 +1511,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)
|
||||
|
|
@ -1521,7 +1521,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue