On Sun, Aug 28, 2011 at 2:20 PM, Travis Parks <jehugalea...@gmail.com>wrote:
> There are some things I want to make sure of. 1) I want to make sure > that source is iterable. 2) More importantly, I want to make sure that > predicate is callable, accepting a thing, returning a bool. > You can check a lot of this stuff very inexpensively by using pylint, pychecker or pyflakes. I use pylint quite a bit. Along with many kinds of type errors (except almost anything can be legitimately used in a boolean context), it'll detect when you define an any(), hiding the builtin one.
-- http://mail.python.org/mailman/listinfo/python-list