Message190595
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
>>> |
|
Date |
User |
Action |
Args |
2013-06-04 11:43:57 | dabeaz | set | recipients:
+ dabeaz, gvanrossum, twouters, rhettinger, ncoghlan, nedbat, doughellmann, r.david.murray, skrah, Julian |
2013-06-04 11:43:57 | dabeaz | set | messageid: <1370346237.82.0.226875514921.issue18111@psf.upfronthosting.co.za> |
2013-06-04 11:43:57 | dabeaz | link | issue18111 messages |
2013-06-04 11:43:57 | dabeaz | create | |
|