8000 bpo-22039: [doc] clarify that there are no plans to disable deleting … · python/cpython@0861a50 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0861a50

Browse files
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 3bf6315) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
1 parent 01e6cbe commit 0861a50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/c-api/object.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ Object Protocol
8181
return ``0`` on success. This is the equivalent of the Python statement
8282
``o.attr_name = v``.
8383
84-
If *v* is ``NULL``, the attribute is deleted, however this feature is
85-
deprecated in favour of using :c:func:`PyObject_DelAttr`.
84+
If *v* is ``NULL``, the attribute is deleted. This behaviour is deprecated
85+
in favour of using :c:func:`PyObject_DelAttr`, but there are currently no
86+
plans to remove it.
8687
8788
8889
.. c:function:: int PyObject_SetAttrString(PyObject *o, const char *attr_name, PyObject *v)

0 commit comments

Comments
 (0)
0