From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Wed, 19 Jan 2022 12:03:51 +0000 (+0000) Subject: bpo-22039: [doc] clarify that there are no plans to disable deleting an attribute... X-Git-Tag: v3.11.0a5~211 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bf6315c4cabf72d64e65e6f85bf72c65137255a;p=thirdparty%2FPython%2Fcpython.git bpo-22039: [doc] clarify that there are no plans to disable deleting an attribute via PyObject_SetAttr (GH-30639) --- diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst index 17e370779949..41a3affcf984 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)