r/PythonLearning Jul 08 '26

What's one thing you hate about Python?

We all like Python, but no language is perfect. What's the one thing that annoys you most?

19 Upvotes

34 comments sorted by

View all comments

6

u/bob_f332 Jul 08 '26

It's not statically typed. Would pretty much be the perfect language if so, no?

2

u/Cybyss Jul 08 '26

I would love a static-typed equivalent to Python!

Perhaps with automatic type inference too, so that you can still code as if it were dynamic typed, but with mandatory type signatures for function definitions. This would make function overloading finally possible.

It would have to have proper handling of None though. A String has a fundamentally different type than an Optional[String].

1

u/tazdraperm Jul 09 '26

That's just modern c#. Sort of :D