Message190538
For the record, Raymond, I think you're wrong about this. Itertools isn't always a solution to every problem, and it makes for a very awkward way around a silly limitation in min() and max(). Their API is already awkward -- because they already take a keyword argument as well as *args or an iterable -- and this does not make it worse in any way. It's trivial to add this, it's trivial to explain -- return a specific value instead of raising a particular exception -- and it's wasteful, complex, fragile or unreadable (except if you have itertools on the mind, I guess) to do the same thing in another way. |
|
Date |
User |
Action |
Args |
2013-06-03 11:48:11 | twouters | set | recipients:
+ twouters, rhettinger, r.david.murray, skrah, Julian |
2013-06-03 11:48:11 | twouters | set | messageid: <1370260091.89.0.628244267201.issue18111@psf.upfronthosting.co.za> |
2013-06-03 11:48:11 | twouters | link | issue18111 messages |
2013-06-03 11:48:11 | twouters | create | |
|