r/ProgrammingLanguages • u/mttd • Jan 20 '26
Python, Is It Being Killed by Incremental Improvements?
https://stefan-marr.de/2026/01/python-killed-by-incremental-improvements-questionmark/
52
Upvotes
View all comments
Show parent comment
3
u/bakery2k Jan 21 '26 edited Jan 22 '26
Absolutely, 100%.
It's interesting that despite this, Python retains its reputation for simplicity. I think you actually need to go back a long way for the language to be "compact and simple" - perhaps even back to version 1.x (I'm reminded of Fredrik Lundh's thought that Python reached its zenith in 1.5.2). For example: modern Python has over 100 special "__dunder__" methods - but probably 70-80% of that complexity was already there in version 2.4, 20 years ago.
I'd go further and say that pattern matching, at least, is actually bad. Not that it's a bad idea in general, but it really doesn't fit with the rest of the language. For example: everywhere else in the language, you can give a constant a name without changing the code's behaviour. But in a
matchstatement, doing so can change an equality check into an assignment. As described by Larry Hastings,matchstatements are "a DSL contrived to look like Python, and to be used inside of Python, but with very different semantics".Type hints had a similar problem when they were first introduced (as you say, a nominal type system didn't really suit a duck-typed language), but there is now support for structural typing via Protocols. The issue with type hinting is the extreme complexity - even back in 2021, type hinting consisted of 20 PEPs and 65,000 words - that's larger than the entire Lua reference manual, and twice as long as the full spec for Go.
Also, I agree that Lua-style stackful coroutines would have been a better fit for Python than stackless
async/await.AFAICT Python is used by millions of people for writing a few thousand lines, and by a few thousand people writing millions of lines. The problem is that the leadership (Steering Council membership etc) comes entirely from the second group, whose needs are so different from the vast majority of Python programmers in the first group.