On Jan 29, 2008 9:23 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > If you're going to delete elements from > a list while iterating over it, then do > it in reverse order:
how about >>> li = [1,2,3,4,5] >>> filter(lambda x: x != 3, li) [1, 2, 4, 5] >>> -- http://mail.python.org/mailman/listinfo/python-list