Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f87f3b42
Commit
f87f3b42
authored
Jun 03, 2005
by
Anthony Baxter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix object.__divmod__.__doc__
backport candidate
parent
fa48f72c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Objects/typeobject.c
Objects/typeobject.c
+8
-2
No files found.
Objects/typeobject.c
View file @
f87f3b42
...
...
@@ -4908,6 +4908,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
,
...
...
@@ -4976,9 +4982,9 @@ static slotdef slotdefs[] = {
"%"
),
RBINSLOT
(
"__rmod__"
,
nb_remainder
,
slot_nb_remainder
,
"%"
),
BINSLOT
(
"__divmod__"
,
nb_divmod
,
slot_nb_divmod
,
BINSLOT
NOTINFIX
(
"__divmod__"
,
nb_divmod
,
slot_nb_divmod
,
"divmod(x, y)"
),
RBINSLOT
(
"__rdivmod__"
,
nb_divmod
,
slot_nb_divmod
,
RBINSLOT
NOTINFIX
(
"__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])"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment