Marc 'BlackJack' Rintsch wrote:

> No need to iterate twice over the `items`.  The two other approaches you
> gave are just needed if it's important that the elements are deleted "in
> place", i.e. that you don't rebind `items` to a new object.

and even when you do, that can often be written as, e.g:

     items[:] = (i for i in items if not i < 0.5)

</F>

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to