For the last time, Python is not weakly typed. It is dynamically typed. The statement 5 + "hello"
results in a type error. Bash is weakly typed, and that same addition results in 5hello
For the last time, Python is not weakly typed. It is dynamically typed. The statement 5 + "hello"
results in a type error. Bash is weakly typed, and that same addition results in 5hello
i can at least take solace in the fact that brain dead lemmings are 100% bark and 0% bite
I can’t see through the paywall either, but if it’s like any of the hundreds of other articles that have been written on this topic, the answer is probably TikTok
can somebody please remind me why i still have a lemmy account?
by that logic, every citizen of the united states is a fascist, because they could have been mobilizing and weren’t
Elon Musk tweeted “Imagine a new all-powerful woke AI”
i’m honestly not sure which belief is more brain-dead: that anything that is woke is bad, or that all-powerful AI is a credible threat
And “right wing” as defined by someone who calls anyone to the right of Bernie Sanders a fascist…
Tell me they didn’t. Tell me this isn’t an actual slide. This is just too funny.
Because to a certain extent Python is duck typed. Python has no concept of interfaces, unless you count the
abc
module combined with manualisinstance()
checks, which I’ve never seen anyone do in production. In order to be passed to some function that expects a “file-like object”, it just has to have methods namedread()
,seek()
, and possiblyisatty()
. The Python philosophy, at least as I see it, is “as long as it has methods namedwalk()
andquack()
, it’s close enough to a duck for me to treat it as one”.Duck typing is distinct from weak type systems, though.