]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46978: Correct docstrings for in-place builtin operators (#31802)
authorNicko van Someren <nicko@nicko.org>
Sat, 18 Feb 2023 18:44:41 +0000 (11:44 -0700)
committerGitHub <noreply@github.com>
Sat, 18 Feb 2023 18:44:41 +0000 (18:44 +0000)
Misc/NEWS.d/next/Core and Builtins/2022-03-10-21-48-05.bpo-46978.f5QFfw.rst [new file with mode: 0644]
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
new file mode 100644 (file)
index 0000000..72291d0
--- /dev/null
@@ -0,0 +1 @@
+Fixed docstrings for in-place operators of built-in types.
index bf6ccdb77a90f016e177ea500b48c1d85a250cfa..f2e8092aa37eeca5ed1903fded51a44ff39de09c 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\nReturn self" DOC "value.")
+           #NAME "($self, value, /)\n--\n\nCompute 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.")