23 Jul
2012
23 Jul
'12
4:36 a.m.
On Jul 22, 2012, at 11:03 PM, Giampaolo Rodolà wrote:
This would be similar to 'key' argument already available for min(), max() and sorted() and would let user decide what must be considered True and what not.
There's no need. We already have: >>> all(predicate(x) for x in iterable) >>> any(predicate(x) for x in iterable) Raymond