Dear Ian,
thank you for you kind response. I was pretty confident the issue had
already been discussed, but I was unable to look it up.
I suppose your "filter" syntax is the best given the options (I always
forget about map and filter...) and definitely I see that the work
needed to add such a fe
e other is list comprehensions as in
===(6)===
for x in (x in l if P(x)):
do_stuff(x)
==
which accidentally would be a better solution than (1), (3), (4), (5),
though not as good as (2).
Thank you for your attention,
Stefano Maggiolo
--
http://mail.python.org/mailman/listinfo/python-list