[Python-checkins] cpython (2.7): Closes #22772: fix __ifloordiv__ and __itruediv__ docstring.

georg.brandl python-checkins at python.org
Fri Oct 31 13:13:47 CET 2014


https://hg.python.org/cpython/rev/3f13f1620d70
changeset:   93326:3f13f1620d70
branch:      2.7
parent:      93323:6cd4b9827755
user:        Georg Brandl <georg at python.org>
date:        Fri Oct 31 13:12:57 2014 +0100
summary:
  Closes #22772: fix __ifloordiv__ and __itruediv__ docstring.

files:
  Objects/typeobject.c |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Objects/typeobject.c b/Objects/typeobject.c
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -5993,9 +5993,9 @@
     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,
            "x[y:z] <==> x[y.__index__():z.__index__()]"),
     MPSLOT("__len__", mp_length, slot_mp_length, wrap_lenfunc,

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list