This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients docs@python, rhettinger
Date 2014-02-13.20:08:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392322129.66.0.847659571757.issue20620@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-02-13 20:08:49rhettingersetrecipients: + rhettinger, docs@python
2014-02-13 20:08:49rhettingersetmessageid: <1392322129.66.0.847659571757.issue20620@psf.upfronthosting.co.za>
2014-02-13 20:08:49rhettingerlinkissue20620 messages
2014-02-13 20:08:49rhettingercreate