Is there a more elegant way to spell this?

Chris Warrick kwpolska at gmail.com
Tue Jan 27 08:20:10 EST 2015


On Jan 27, 2015 2:16 PM, "Neal Becker" <ndbecker2 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150127/db51fd26/attachment.html>


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /