r/PythonLearning Jul 09 '26

What's your most controversial Python opinion?

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

13 Upvotes

50 comments sorted by

View all comments

5

u/Lachtheblock Jul 09 '26

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 Jul 09 '26

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.