[New-bugs-announce] [issue20620] Update the min()/max() docs for the new default argument
Raymond Hettinger
report at bugs.python.org
Thu Feb 13 21:08:49 CET 2014
New submission from Raymond Hettinger:
There is a new "default" argument for min() and max():
>>> min([], default=10)
10
The new argument is not currently shown by help():
>>> help(min)
Help on built-in function min in module builtins:
min(...)
min(iterable[, key=func]) -> value
min(a, b, c, ...[, key=func]) -> value
With a single iterable argument, return its smallest item.
With two or more arguments, return the smallest argument.
----------
assignee: docs at python
components: Documentation
messages: 211168
nosy: docs at python, rhettinger
priority: normal
severity: normal
status: open
title: Update the min()/max() docs for the new default argument
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20620>
_______________________________________
More information about the New-bugs-announce
mailing list