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
b104ecbb
Commit
b104ecbb
authored
Sep 21, 2019
by
Raymond Hettinger
Committed by
GitHub
Sep 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shorter docstring (GH-16322)
parent
030fe8e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Python/bltinmodule.c
Python/bltinmodule.c
+2
-2
Python/clinic/bltinmodule.c.h
Python/clinic/bltinmodule.c.h
+2
-2
No files found.
Python/bltinmodule.c
View file @
b104ecbb
...
...
@@ -1800,7 +1800,7 @@ pow as builtin_pow
exp: object
mod: object = None
Equivalent to base**exp
(with two arguments) or base**exp % mod (with three arguments)
Equivalent to base**exp
with 2 arguments or base**exp % mod with 3 arguments
Some types, such as ints, are able to use a more efficient algorithm when
invoked using the three argument form.
...
...
@@ -1809,7 +1809,7 @@ invoked using the three argument form.
static
PyObject
*
builtin_pow_impl
(
PyObject
*
module
,
PyObject
*
base
,
PyObject
*
exp
,
PyObject
*
mod
)
/*[clinic end generated code: output=3ca1538221bbf15f input=
bd72d0a0ec8e5eb5
]*/
/*[clinic end generated code: output=3ca1538221bbf15f input=
435dbd48a12efb23
]*/
{
return
PyNumber_Power
(
base
,
exp
,
mod
);
}
...
...
Python/clinic/bltinmodule.c.h
View file @
b104ecbb
...
...
@@ -611,7 +611,7 @@ PyDoc_STRVAR(builtin_pow__doc__,
"pow($module, /, base, exp, mod=None)
\n
"
"--
\n
"
"
\n
"
"Equivalent to base**exp
(with two arguments) or base**exp % mod (with three arguments)
\n
"
"Equivalent to base**exp
with 2 arguments or base**exp % mod with 3 arguments
\n
"
"
\n
"
"Some types, such as ints, are able to use a more efficient algorithm when
\n
"
"invoked using the three argument form."
);
...
...
@@ -855,4 +855,4 @@ builtin_issubclass(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
exit:
return
return_value
;
}
/*[clinic end generated code: output=
1e2a6185e05ecd11
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
29686a89b739d600
input=a9049054013a1b77]*/
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