summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-11-11 15:02:16 (GMT)
committerEli Bendersky <eliben@gmail.com>2011-11-11 15:02:16 (GMT)
commite92ff0503cb006fa96f40928d5563b8cce44c4e4 (patch)
tree1009ef4f867998fb0c8897cda352f44f190033ef /Objects
parent51f6648a31be8d73e527a06315326fb9f1223fd5 (diff)
parentd3baae73be733287504b800de22db173017c95f7 (diff)
downloadcpython-e92ff0503cb006fa96f40928d5563b8cce44c4e4.zip
cpython-e92ff0503cb006fa96f40928d5563b8cce44c4e4.tar.gz
cpython-e92ff0503cb006fa96f40928d5563b8cce44c4e4.tar.bz2
Issue #13161: fix doc strings of __i*__ operators. Closes #13161
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 2ca1b8f..d53ae93 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -5717,25 +5717,25 @@ static slotdef slotdefs[] = {
NBSLOT("__index__", nb_index, slot_nb_index, wrap_unaryfunc,
"x[y:z] <==> x[y.__index__():z.__index__()]"),
IBSLOT("__iadd__", nb_inplace_add, slot_nb_inplace_add,
- wrap_binaryfunc, "+"),
+ wrap_binaryfunc, "+="),
IBSLOT("__isub__", nb_inplace_subtract, slot_nb_inplace_subtract,
- wrap_binaryfunc, "-"),
+ wrap_binaryfunc, "-="),
IBSLOT("__imul__", nb_inplace_multiply, slot_nb_inplace_multiply,
- wrap_binaryfunc, "*"),
+ wrap_binaryfunc, "*="),
IBSLOT("__imod__", nb_inplace_remainder, slot_nb_inplace_remainder,
- wrap_binaryfunc, "%"),
+ wrap_binaryfunc, "%="),
IBSLOT("__ipow__", nb_inplace_power, slot_nb_inplace_power,
- wrap_binaryfunc, "**"),
+ wrap_binaryfunc, "**="),
IBSLOT("__ilshift__", nb_inplace_lshift, slot_nb_inplace_lshift,
- wrap_binaryfunc, "<<"),
+ wrap_binaryfunc, "<<="),
IBSLOT("__irshift__", nb_inplace_rshift, slot_nb_inplace_rshift,
- wrap_binaryfunc, ">>"),
+ wrap_binaryfunc, ">>="),
IBSLOT("__iand__", nb_inplace_and, slot_nb_inplace_and,
- wrap_binaryfunc, "&"),
+ wrap_binaryfunc, "&="),
IBSLOT("__ixor__", nb_inplace_xor, slot_nb_inplace_xor,
- wrap_binaryfunc, "^"),
+ wrap_binaryfunc, "^="),
IBSLOT("__ior__", nb_inplace_or, slot_nb_inplace_or,
- wrap_binaryfunc, "|"),
+ wrap_binaryfunc, "|="),
BINSLOT("__floordiv__", nb_floor_divide, slot_nb_floor_divide, "//"),
RBINSLOT("__rfloordiv__", nb_floor_divide, slot_nb_floor_divide, "//"),
BINSLOT("__truediv__", nb_true_divide, slot_nb_true_divide, "/"),