

I think his point was that Python is more useful for one-off stuff and I’d claim that much better than bash at those kinds of things.
But Python has so many quirks and bad designs. Function scoped variables, multiple inheritance, backwards comprehension syntax, poor pattern matching, poor handling of None and so much is convention based so you don’t get an error if you did it wrong. Python classes aren’t serializable (not even data classes).
Coupled with it’s awful performance I’m convinced the reason people use it is because they don’t know anything else.


I write C# and Python, and C# is much more expressive than Python is and performs about 10x to 77x better. C# has much better pattern matching and has operators to deal with
nulland support for it in the type system. C# records can be serialized without issue (Python’s built in JSON serializer can only serialize dictionaries). Althoigh variable scoping in C# isn’t perfect (object patterns in if statements pollute the outer scope) variables at least aren’t just function scoped like in Python. You can define user defined primitve types in C# which enables bettrr support for domain typing than what is possible in Python.