This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chienpingtsung
Recipients chienpingtsung
Date 2020-10-05.10:33:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601894007.96.0.390965204143.issue41942@roundup.psfhosted.org>
In-reply-to
Content
'for loop' always been used as follow code:

arr = [...]
for e in arr:
    if not condition(e):
        continue
    ...

What if be written just like 'list expression', would it be more explicit?

for e in arr if condition(e):
    pass
History
Date User Action Args
2020-10-05 10:33:27chienpingtsungsetrecipients: + chienpingtsung
2020-10-05 10:33:27chienpingtsungsetmessageid: <1601894007.96.0.390965204143.issue41942@roundup.psfhosted.org>
2020-10-05 10:33:27chienpingtsunglinkissue41942 messages
2020-10-05 10:33:27chienpingtsungcreate