]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Revert "bpo-46978: Correct docstrings for in-place builtin operators #31802) (#102146)
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Thu, 23 Feb 2023 10:17:44 +0000 (10:17 +0000)
committerGitHub <noreply@github.com>
Thu, 23 Feb 2023 10:17:44 +0000 (10:17 +0000)
Revert "bpo-46978: Correct docstrings for in-place builtin operators (#31802)"

This reverts commit 128379b8cdb88a6d3d7fed24df082c9a654b3fb8.

Misc/NEWS.d/next/Core and Builtins/2022-03-10-21-48-05.bpo-46978.f5QFfw.rst [deleted file]
Objects/typeobject.c

diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-03-10-21-48-05.bpo-46978.f5QFfw.rst b/Misc/NEWS.d/next/Core and Builtins/2022-03-10-21-48-05.bpo-46978.f5QFfw.rst
deleted file mode 100644 (file)
index 72291d0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Fixed docstrings for in-place operators of built-in types.
index 2d1220a0695036b4daf54630e053ad88d5052e6f..b3f1429debc58b00c490312a9ba3b29262759fb1 100644 (file)
@@ -8564,7 +8564,7 @@ an all-zero entry.
            #NAME "($self, /)\n--\n\n" DOC)
 #define IBSLOT(NAME, SLOT, FUNCTION, WRAPPER, DOC) \
     ETSLOT(NAME, as_number.SLOT, FUNCTION, WRAPPER, \
-           #NAME "($self, value, /)\n--\n\nCompute self " DOC " value.")
+           #NAME "($self, value, /)\n--\n\nReturn self" DOC "value.")
 #define BINSLOT(NAME, SLOT, FUNCTION, DOC) \
     ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_l, \
            #NAME "($self, value, /)\n--\n\nReturn self" DOC "value.")