r/Python • • May 30 '19

Dear python2 user

Post image
1.9k Upvotes

275 comments sorted by

View all comments

27

u/mrrichardcranium May 30 '19

Just started using python. Learned python 2 because of the systems and frameworks I’m using at work. This last week I started moving all things possible to python 3 in anticipation for it becoming the default on coming OSs. Holy hell does it make a lot of things easier. Basic threading in 3 makes me wish I could rewrite the frameworks my work uses so I could make the full jump over and never look back.

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!