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 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.
History
Date User Action Args
2015-05-18 07:30:58cool-RRsetrecipients: + cool-RR, paul.moore, bquinlan, ncoghlan, pitrou, jnoller, ethan.furman, sbt
2015-05-18 07:30:58cool-RRsetmessageid: <1431934258.88.0.106295294104.issue24195@psf.upfronthosting.co.za>
2015-05-18 07:30:58cool-RRlinkissue24195 messages
2015-05-18 07:30:58cool-RRcreate