News for hackers. Stuff that matters.
Re:Python 3.6 – Asynchronous Comprehensions by lars512 on Sunday December 11, 2016 @03:09AM (#13150111)
Parallel map is built in to Python already with pools.

    import requests
    import multiprocessing as mp
    
    pool = mp.Pool()
    urls = ["http://httpbin.org/get?a=#{}".format(i) for i in range(100)]
    pool.map(requests.get, urls)

There are no comments on this comment yet.