]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] bpo-22039: [doc] clarify that there are no plans to disable deleting an attribu...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 19 Jan 2022 12:29:52 +0000 (04:29 -0800)
committerGitHub <noreply@github.com>
Wed, 19 Jan 2022 12:29:52 +0000 (04:29 -0800)
(cherry picked from commit 3bf6315c4cabf72d64e65e6f85bf72c65137255a)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Automerge-Triggered-By: GH:iritkatriel
Doc/c-api/object.rst

index 05faa72346ed6bb3eaf9ad20aaf1f5c3c8864cf2..9f874382e85bb639b20e52f1816098fb7f0237e0 100644 (file)
@@ -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)