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 serhiy.storchaka
Recipients josh.r, rhettinger, serhiy.storchaka
Date 2019-06-02.06:08:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559455711.35.0.473338525017.issue36781@roundup.psfhosted.org>
In-reply-to
Content
I am not sure that this optimization should be added. sum(pred(x) for x in data) will be always slower than sum(1 for x in data if pred(x)) because more items is passed to sun() in the former case. It can be considered as an anti-pattern.
History
Date User Action Args
2019-06-02 06:08:31serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, josh.r
2019-06-02 06:08:31serhiy.storchakasetmessageid: <1559455711.35.0.473338525017.issue36781@roundup.psfhosted.org>
2019-06-02 06:08:31serhiy.storchakalinkissue36781 messages
2019-06-02 06:08:31serhiy.storchakacreate