Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)AV
Posts
15
Comments
2,352
Joined
2 yr. ago

  • your drug dealer wants to lower your debt in exchange for fixing their PC? HELL NO!!!

    nuh uh, if i'm getting paid (getting paid in reduced debt is still paid cuz it's money i was gonna give him anyway) i'll do whatever

  • Because to a certain extent Python is duck typed. Python has no concept of interfaces, unless you count the abc module combined with manual isinstance() 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 named read(), seek(), and possibly isatty(). The Python philosophy, at least as I see it, is "as long as it has methods named walk() and quack(), it's close enough to a duck for me to treat it as one".

    Duck typing is distinct from weak type systems, though.

  • 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

  • rule

    Jump
  • I can think of no more perfect summary of the average Lemming's slacktivism than the fact that this comment has 4 upvotes while the one below it, which reads simply "fuck drumpf", has 16