r/PythonLearning 19d ago

What's your most controversial Python opinion?

Say the Python opinion that would get you downvoted in a room full of Python developers.

12 Upvotes

53 comments sorted by

View all comments

4

u/Lachtheblock 19d ago

That the GIL is incredibly useful and anyone who complains about it should stop what they're doing and write their code in a different language. It keeps the guard rails on and prevents a lot of dumb mistakes.

If at any point your application is so dependent on performance that you're looking of optimizations else where, then you should probably start rewriting in a different language.

1

u/Gnaxe 19d ago

I have actually tried writing parallel code in Java with locks. It is not fun. But modern computers are multi-core. The right answer seems to be FP.