[Python-ideas] [Python-Dev] minmax() function returning (minimum, maximum) tuple of a sequence
raymond.hettinger at gmail.com
Mon Oct 25 23:11:26 CEST 2010
>> Is it possible to calculate min(items) and max(items) simultaneously using
>> generators? I don't see how...
> No, this is why the reduce-like approach is better for such cases.
> Otherwise you keep trying to fit a square peg into a round hold.
Which, of course, is neither good for the peg, nor for the hole ;-)
More information about the Python-ideas