diff options
author | Anthony Baxter <anthonybaxter@gmail.com> | 2005-06-03 14:13:47 (GMT) |
---|---|---|
committer | Anthony Baxter <anthonybaxter@gmail.com> | 2005-06-03 14:13:47 (GMT) |
commit | d855c5888e3e3e2c22b8773c5743d5a689274eac (patch) | |
tree | 5019ab74690f553bbc5683de3c1352d3fb624bde /Objects | |
parent | 5298ade7a54a5005a79fb0752847cb4ca57a8169 (diff) | |
download | cpython-d855c5888e3e3e2c22b8773c5743d5a689274eac.zip cpython-d855c5888e3e3e2c22b8773c5743d5a689274eac.tar.gz cpython-d855c5888e3e3e2c22b8773c5743d5a689274eac.tar.bz2 |
fix int.__divmod__.__doc__
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 26fe2a1..391140c 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -4909,6 +4909,12 @@ typedef struct wrapperbase slotdef; #define RBINSLOT(NAME, SLOT, FUNCTION, DOC) \ ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_r, \ "x." NAME "(y) <==> y" DOC "x") +#define BINSLOTNOTINFIX(NAME, SLOT, FUNCTION, DOC) \ + ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_l, \ + "x." NAME "(y) <==> " DOC) +#define RBINSLOTNOTINFIX(NAME, SLOT, FUNCTION, DOC) \ + ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_r, \ + "x." NAME "(y) <==> " DOC) static slotdef slotdefs[] = { SQSLOT("__len__", sq_length, slot_sq_length, wrap_inquiry, @@ -4977,9 +4983,9 @@ static slotdef slotdefs[] = { "%"), RBINSLOT("__rmod__", nb_remainder, slot_nb_remainder, "%"), - BINSLOT("__divmod__", nb_divmod, slot_nb_divmod, + BINSLOTNOTINFIX("__divmod__", nb_divmod, slot_nb_divmod, "divmod(x, y)"), - RBINSLOT("__rdivmod__", nb_divmod, slot_nb_divmod, + RBINSLOTNOTINFIX("__rdivmod__", nb_divmod, slot_nb_divmod, "divmod(y, x)"), NBSLOT("__pow__", nb_power, slot_nb_power, wrap_ternaryfunc, "x.__pow__(y[, z]) <==> pow(x, y[, z])"), |