Message243463
| Author |
cool-RR |
| Recipients |
bquinlan, cool-RR, ethan.furman, jnoller, ncoghlan, paul.moore, pitrou, sbt |
| Date |
2015年05月18日.07:30:58 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1431934258.88.0.106295294104.issue24195@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Looks like this a recipe in the docs is where this ticket is headed.
I took my original example for `Executor.filter` and changed it using Brian's suggestion so now it uses `Executor.map`. Please check it out. If someone other than me feels comfortable in putting it into the documentation page, I'll be happy if you could do that.
Possible issues:
This example uses `requests`, which isn't in the standard library.
I would say that this `for` line:
for person in (person for person, filter_result in
zip(people, executor.map(has_wikipedia_page, people))
if filter_result):
Is a bit ugly, but since the consensus here is that this is better than implementing `Executor.filter`, so be it. |
|