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!

3

u/TBSchemer May 30 '19

Your workplace definitely needs to hire someone to rewrite those frameworks within the next 6 months.

1

u/mrrichardcranium May 30 '19

If I was a betting man, I would be willing to wage an entire years salary that there are people doing just that. Its a critical automation framework that I don't think we can afford to function without. Though Im sadly not disclosed on the status of that just yet.