On Jan 27, 2015 2:16 PM, "Neal Becker" <ndbeck...@gmail.com> wrote: > > Is there a more elegant way to spell this? > > for x in [_ for _ in seq if some_predicate]:
for x in seq: if some_predicate: do_something_to(x) -- Chris Warrick <https://chriswarrick.com/> Sent from my Galaxy S3.
-- https://mail.python.org/mailman/listinfo/python-list