Message243463
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. |
|
Date |
User |
Action |
Args |
2015-05-18 07:30:58 | cool-RR | set | recipients:
+ cool-RR, paul.moore, bquinlan, ncoghlan, pitrou, jnoller, ethan.furman, sbt |
2015-05-18 07:30:58 | cool-RR | set | messageid: <1431934258.88.0.106295294104.issue24195@psf.upfronthosting.co.za> |
2015-05-18 07:30:58 | cool-RR | link | issue24195 messages |
2015-05-18 07:30:58 | cool-RR | create | |
|