[Python-ideas] [Python-Dev] minmax() function returning (minimum, maximum) tuple of a sequence

Georg Brandl g.brandl at gmx.net
Fri Oct 15 22:52:43 CEST 2010


Am 15.10.2010 22:00, schrieb Ron Adam:

>> (Notice the same will hold for min() but at least you know that min(x)
>> considers x as an iterable and complains if it isn't)
> 
> Yes
> 
> There doesn't seem to be a way to generalize min/max in a way to handle all 
> the cases without knowing the context.

I give up.  You see an issue where there is none.

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.




More information about the Python-ideas mailing list