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 dabeaz
Recipients Julian, dabeaz, doughellmann, gvanrossum, ncoghlan, nedbat, r.david.murray, rhettinger, skrah, twouters
Date 2013-06-04.11:43:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370346237.82.0.226875514921.issue18111@psf.upfronthosting.co.za>
In-reply-to
Content
To me, the fact that m = max(s) if s else default doesn't work with iterators alone makes this worthy of consideration.   

I would also note that min/max are the only reduction functions that don't have the ability to work with a possibly empty sequence.  For example:

    >>> sum([])
    0
    >>> any([])
    False
    >>> all([])
    True
    >>> functools.reduce(lambda x,y: x+y, [], 0)
    0
    >>> math.fsum([])
    0.0
    >>>
History
Date User Action Args
2013-06-04 11:43:57dabeazsetrecipients: + dabeaz, gvanrossum, twouters, rhettinger, ncoghlan, nedbat, doughellmann, r.david.murray, skrah, Julian
2013-06-04 11:43:57dabeazsetmessageid: <1370346237.82.0.226875514921.issue18111@psf.upfronthosting.co.za>
2013-06-04 11:43:57dabeazlinkissue18111 messages
2013-06-04 11:43:57dabeazcreate