r/Python • • May 30 '19

Dear python2 user

Post image
1.9k Upvotes

275 comments sorted by

View all comments

Show parent comments

13

u/toyg May 30 '19

Basic threading

You mean asyncio, I guess? It's not really "threading"...

13

u/mrrichardcranium May 30 '19 edited May 30 '19

I mean splitting up a list of 700+ items to 10 workers using threadpoolexecutor. Maybe ‘basic threading’ is not the right description. The fact that it took me two lines to get done is what makes me think of it as basic 😅

7

u/toyg May 30 '19

Ah, good point, I forgot concurrent.futures is 3-only...

5

u/mrrichardcranium May 30 '19

And god damn is it glorious!