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
ac263012
Commit
ac263012
authored
May 19, 2014
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 20620: Update the min()/max() docs for the new default argument.
Patch provided by Berker Peksag.
parent
8790554f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
Python/bltinmodule.c
Python/bltinmodule.c
+10
-6
No files found.
Python/bltinmodule.c
View file @
ac263012
...
...
@@ -1454,10 +1454,12 @@ builtin_min(PyObject *self, PyObject *args, PyObject *kwds)
}
PyDoc_STRVAR
(
min_doc
,
"min(iterable
[
, key=func]) -> value
\n
\
min(a
, b, c, ...
[, key=func]) -> value
\n
\
"min(iterable
, *[, default=obj
, key=func]) -> value
\n
\
min(a
rg1, arg2, *args, *
[, key=func]) -> value
\n
\
\n
\
With a single iterable argument, return its smallest item.
\n
\
With a single iterable argument, return its smallest item. The
\n
\
default keyword-only argument specifies an object to return if
\n
\
the provided iterable is empty.
\n
\
With two or more arguments, return the smallest argument."
);
...
...
@@ -1468,10 +1470,12 @@ builtin_max(PyObject *self, PyObject *args, PyObject *kwds)
}
PyDoc_STRVAR
(
max_doc
,
"max(iterable
[
, key=func]) -> value
\n
\
max(a
, b, c, ...
[, key=func]) -> value
\n
\
"max(iterable
, *[, default=obj
, key=func]) -> value
\n
\
max(a
rg1, arg2, *args, *
[, key=func]) -> value
\n
\
\n
\
With a single iterable argument, return its largest item.
\n
\
With a single iterable argument, return its biggest item. The
\n
\
default keyword-only argument specifies an object to return if
\n
\
the provided iterable is empty.
\n
\
With two or more arguments, return the largest argument."
);
...
...
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