• 0 Posts
  • 821 Comments
Joined 1 year 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.




  • AVincentInSpace@pawb.socialtoComic Strips@lemmy.worldRational Self-Interest
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    3 days ago

    She is, however, acting in her own rational self-interest by keeping all the value of the new machine for herself and not passing it on to her workers. If she were acting in the group’s rational self-interest, she would allow them to work half as long. Since she is acting in her own rational self-interest, she threatens to fire her workers if they do not work the same hours as before and pass the value on to her. From her perspective, it makes perfect sense: all she has to do is install the new machine and make no other changes, and she and begins earning twice as much income from the factory she owns, without having to lift a finger. Any purely rational person (as opposed, mind you, to an empathetic one) would take the option to do that.








  • You couldn’t use any of the services to find your phone?

    GrapheneOS doesn’t come with any preinstalled (doing so would kind of go against the whole privacy ethos), and I hadn’t yet gone through the hassle of setting up an Owntracks server so I could have a third-party one. I tried calling it, but by the time I realized it was missing, it was out of battery.