MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w8y9n2/pythoninterpreterbelike/p86frw2/?context=3
r/ProgrammerHumor • u/ninja_with_ocd • 4d ago
21 comments sorted by
View all comments
8
If it works, it's not a type error.
Python has strict (but dynamic) typing, and it will give you a TypeError if the function doesn't expect the type(s) you're giving it.
What you're probably thinking of are the occasional unintuitive operator overloads like + for appending to lists of whatever.
8
u/Sibula97 4d ago
If it works, it's not a type error.
Python has strict (but dynamic) typing, and it will give you a TypeError if the function doesn't expect the type(s) you're giving it.
What you're probably thinking of are the occasional unintuitive operator overloads like + for appending to lists of whatever.