Message344255
| 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:31 | serhiy.storchaka | set | recipients: + serhiy.storchaka, rhettinger, josh.r |
| 2019-06-02 06:08:31 | serhiy.storchaka | set | messageid: <1559455711.35.0.473338525017.issue36781@roundup.psfhosted.org> |
| 2019-06-02 06:08:31 | serhiy.storchaka | link | issue36781 messages |
| 2019-06-02 06:08:31 | serhiy.storchaka | create | |