Skip to content

Instantly share code, notes, and snippets.

@anthonymorast
Created Jan 8, 2022
Embed
What would you like to do?
for value in values:
squares.append(square(value))
## changed to
with Pool(num_procs) as p:
squares = p.map(square, values)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment