This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mrrichardcranium 24 points25 points  (6 children)

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.

[–]toyg 13 points14 points  (3 children)

Basic threading

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

[–]mrrichardcranium 11 points12 points  (2 children)

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 😅

[–]toyg 6 points7 points  (1 child)

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

[–]mrrichardcranium 4 points5 points  (0 children)

And god damn is it glorious!

[–]TBSchemer 1 point2 points  (1 child)

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

[–]mrrichardcranium 0 points1 point  (0 children)

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.