From: Georg Brandl Date: Fri, 31 Oct 2014 12:12:57 +0000 (+0100) Subject: Closes #22772: fix __ifloordiv__ and __itruediv__ docstring. X-Git-Tag: v3.5.0a1~551^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1d26f377eb911aa6a6c5f666ba9c71c65b85695;p=python Closes #22772: fix __ifloordiv__ and __itruediv__ docstring. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index ba106a139a..55fd450c46 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -6271,9 +6271,9 @@ static slotdef slotdefs[] = { BINSLOT("__truediv__", nb_true_divide, slot_nb_true_divide, "/"), RBINSLOT("__rtruediv__", nb_true_divide, slot_nb_true_divide, "/"), IBSLOT("__ifloordiv__", nb_inplace_floor_divide, - slot_nb_inplace_floor_divide, wrap_binaryfunc, "//"), + slot_nb_inplace_floor_divide, wrap_binaryfunc, "//="), IBSLOT("__itruediv__", nb_inplace_true_divide, - slot_nb_inplace_true_divide, wrap_binaryfunc, "/"), + slot_nb_inplace_true_divide, wrap_binaryfunc, "/="), NBSLOT("__index__", nb_index, slot_nb_index, wrap_unaryfunc, "__index__($self, /)\n--\n\n" "Return self converted to an integer, if self is suitable "