I was sure there was something like this in the standard library, but it seems I was wrong.
I have a bunch of urls that I want to urlopen in parallel. I want something like the builtin map function, except the work is done in parallel by a bunch of threads.
Is there a good module that does this?
Someone recommended I use the
futurespackage for this. I tried it and it seems to be working.http://pypi.python.org/pypi/futures
Here’s an example: