On Oct 6, 2:55 am, Stefano Maggiolo <s.maggi...@gmail.com> wrote: > I would like to know if there is a (more) convenient way of doing this > structure: > > ===(1)=== > for x in l: > if P(x): > do_stuff(x) > ======
map(do_stuff, filter(P, l)) -- http://mail.python.org/mailman/listinfo/python-list