summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-01-19 04:34:17 -0800
committerGitHub <noreply@github.com>2022-01-19 12:34:17 +0000
commit0861a50bd434d1f3e12fe7122e37356f1fce93dc (patch)
treee7f7d80a957e64f7570c8ec055783797f2f1d089
parent01e6cbefd3d0f60c942ed711131f5d638dde1227 (diff)
downloadcpython-git-0861a50bd434d1f3e12fe7122e37356f1fce93dc.tar.gz
bpo-22039: [doc] clarify that there are no plans to disable deleting an attribute via PyObject_SetAttr (GH-30639) (GH-30684)
(cherry picked from commit 3bf6315c4cabf72d64e65e6f85bf72c65137255a) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
-rw-r--r--Doc/c-api/object.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index 17e3707799..41a3affcf9 100644
--- a/Doc/c-api/object.rst
+++ b/Doc/c-api/object.rst
@@ -81,8 +81,9 @@ Object Protocol
return ``0`` on success. This is the equivalent of the Python statement
``o.attr_name = v``.
- If *v* is ``NULL``, the attribute is deleted, however this feature is
- deprecated in favour of using :c:func:`PyObject_DelAttr`.
+ If *v* is ``NULL``, the attribute is deleted. This behaviour is deprecated
+ in favour of using :c:func:`PyObject_DelAttr`, but there are currently no
+ plans to remove it.
.. c:function:: int PyObject_SetAttrString(PyObject *o, const char *attr_name, PyObject *v)