• 4 Posts
  • 260 Comments
Joined 2 years ago
cake
Cake day: September 13th, 2023

help-circle

  • 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.











  • “Remember, kids, blatant, sweeping misandry isn’t bad because painting – no matter how you slice it – literally half of society as rapists and murderers and sex-crazed lunatics whose only thought is for animalistic dominance over anyone standing near them is a lie so big and so dangerous it’d give Trump a run for his money, it’s bad because if a transmasc person reads an ‘all men are bad’ post, they might think it’s about them and be sad, and then you’d be hurting someone we actually care about.”

    It sickens me that these people call themselves feminists. You can fight for trans rights and women’s rights without doing it to the exclusion of everyone else.