> def any(seq): return reduce(bool_or, seq, False) > def all(seq): return reduce(bool_and, seq, True)
Any other use cases? These will be built-in in 2.5 -Mike -- http://mail.python.org/mailman/listinfo/python-list
> def any(seq): return reduce(bool_or, seq, False) > def all(seq): return reduce(bool_and, seq, True)
Any other use cases? These will be built-in in 2.5 -Mike -- http://mail.python.org/mailman/listinfo/python-list