• Albbi@piefed.caOP
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    4
    ·
    2 days ago

    You’re right in that OOP feels very shoehorned in with Python. But not every project has a Linus Torvalds to publicly humiliate horrible ideas and implementations.

    • fruitcantfly@programming.dev
      link
      fedilink
      arrow-up
      7
      ·
      2 days ago

      In what way does OOP feel shoehorned in with Python? I ask since that is not my own impression of the language.

      Would you also be willing to share what language(s) you feel do(es) OOP without it being shoehorned in?

      • amos@lemmy.zip
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 days ago

        Yeah, some weird accusations. Python has had classes since its inception (1.0).

        Also the image in the post makes no sense. It shows multiple (Spidey) instances all pointing to each other which is not how self works. self is just a parameter that may contain different instances depending how it was called. This is also true for any other parameters in any function, each time a function is called it may have a different instance.