Skip to content

Commit 128379b

Browse files
authored
bpo-46978: Correct docstrings for in-place builtin operators (#31802)
1 parent af446bb commit 128379b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed docstrings for in-place operators of built-in types.

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8564,7 +8564,7 @@ an all-zero entry.
85648564
#NAME "($self, /)\n--\n\n" DOC)
85658565
#define IBSLOT(NAME, SLOT, FUNCTION, WRAPPER, DOC) \
85668566
ETSLOT(NAME, as_number.SLOT, FUNCTION, WRAPPER, \
8567-
#NAME "($self, value, /)\n--\n\nReturn self" DOC "value.")
8567+
#NAME "($self, value, /)\n--\n\nCompute self " DOC " value.")
85688568
#define BINSLOT(NAME, SLOT, FUNCTION, DOC) \
85698569
ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_l, \
85708570
#NAME "($self, value, /)\n--\n\nReturn self" DOC "value.")

0 commit comments

Comments
 (0)