<br><br><div class="gmail_quote">On Sun, Aug 28, 2011 at 2:20 PM, Travis Parks <span dir="ltr"><<a href="mailto:jehugaleahsa@gmail.com">jehugaleahsa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

There are some things I want to make sure of. 1) I want to make sure<br>
that source is iterable. 2) More importantly, I want to make sure that<br>
predicate is callable, accepting a thing, returning a bool.<br></blockquote><div><br>You can check a lot of this stuff very inexpensively by using pylint, pychecker or pyflakes.<br><br>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.<br>
<br></div></div>