"Jared Grubb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | I want a function that removes values from a list if a predicate evaluates | to True.
Forget the rigamarole you posted, which has several defects. If you must modify the list in place, because you have multiple references to it: lst[:] = filter(lambda x: not pred(x), lst) Otherwise, just lst = filter(....) tjr -- http://mail.python.org/mailman/listinfo/python-list