diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-01-19 12:03:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 12:03:51 (GMT) |
commit | 3bf6315c4cabf72d64e65e6f85bf72c65137255a (patch) | |
tree | 3a17c74d0c80bca8f54850fd2e08ed3c4b26e118 /Doc/c-api/object.rst | |
parent | a847785b40ed8819bde2dac5849dc31d15e99a74 (diff) | |
download | cpython-3bf6315c4cabf72d64e65e6f85bf72c65137255a.zip cpython-3bf6315c4cabf72d64e65e6f85bf72c65137255a.tar.gz cpython-3bf6315c4cabf72d64e65e6f85bf72c65137255a.tar.bz2 |
bpo-22039: [doc] clarify that there are no plans to disable deleting an attribute via PyObject_SetAttr (GH-30639)
Diffstat (limited to 'Doc/c-api/object.rst')
-rw-r--r-- | Doc/c-api/object.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst index 17e3707..41a3aff 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) |