diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-02-23 10:17:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-23 10:17:44 (GMT) |
commit | 572223f9ce99e8816abdcc1536db6c4ceed2d848 (patch) | |
tree | b19986fe6a2c925c021d87bc56218b00bc41c7be | |
parent | 056dfc71dce15f81887f0bd6da09d6099d71f979 (diff) | |
download | cpython-572223f9ce99e8816abdcc1536db6c4ceed2d848.zip cpython-572223f9ce99e8816abdcc1536db6c4ceed2d848.tar.gz cpython-572223f9ce99e8816abdcc1536db6c4ceed2d848.tar.bz2 |
Revert "bpo-46978: Correct docstrings for in-place builtin operators #31802) (#102146)
Revert "bpo-46978: Correct docstrings for in-place builtin operators (#31802)"
This reverts commit 128379b8cdb88a6d3d7fed24df082c9a654b3fb8.
-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, 1 insertions, 2 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 deleted file mode 100644 index 72291d0..0000000 --- a/Misc/NEWS.d/next/Core and Builtins/2022-03-10-21-48-05.bpo-46978.f5QFfw.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed docstrings for in-place operators of built-in types. diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 2d1220a..b3f1429 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\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.") |