diff options
author | Nicko van Someren <nicko@nicko.org> | 2023-02-18 18:44:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 18:44:41 (GMT) |
commit | 128379b8cdb88a6d3d7fed24df082c9a654b3fb8 (patch) | |
tree | 3ebde1bec9cf96609b4cae48cda928aa9d4e3952 | |
parent | af446bbb76f64e67831444a0ceee6863a1527088 (diff) | |
download | cpython-128379b8cdb88a6d3d7fed24df082c9a654b3fb8.zip cpython-128379b8cdb88a6d3d7fed24df082c9a654b3fb8.tar.gz cpython-128379b8cdb88a6d3d7fed24df082c9a654b3fb8.tar.bz2 |
bpo-46978: Correct docstrings for in-place builtin operators (#31802)
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-03-10-21-48-05.bpo-46978.f5QFfw.rst | 1 | ||||
-rw-r--r-- | Objects/typeobject.c | 2 |
2 files changed, 2 insertions, 1 deletions
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 index 0000000..72291d0 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-03-10-21-48-05.bpo-46978.f5QFfw.rst @@ -0,0 +1 @@ +Fixed docstrings for in-place operators of built-in types. diff --git a/Objects/typeobject.c b/Objects/typeobject.c index bf6ccdb..f2e8092 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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.") |