[Python-checkins] [3.9] bpo-22039: [doc] clarify that there are no plans to disable deleting an attribute via PyObject_SetAttr (GH-30639) (GH-30685)
miss-islington
webhook-mailer at python.org
Wed Jan 19 07:30:10 EST 2022
https://github.com/python/cpython/commit/7b694b816f30c463ffcab0952d3319320d23e154
commit: 7b694b816f30c463ffcab0952d3319320d23e154
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-01-19T04:29:52-08:00
summary:
[3.9] bpo-22039: [doc] clarify that there are no plans to disable deleting an attribute via PyObject_SetAttr (GH-30639) (GH-30685)
(cherry picked from commit 3bf6315c4cabf72d64e65e6f85bf72c65137255a)
Co-authored-by: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>
Automerge-Triggered-By: GH:iritkatriel
files:
M Doc/c-api/object.rst
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index 05faa72346ed6..9f874382e85bb 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)
More information about the Python-checkins
mailing list