• tgm@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    1 month ago

    I thought function calls was one of the decently optimized things in Python

    • TunaCowboy@lemmy.world
      link
      fedilink
      English
      arrow-up
      14
      arrow-down
      7
      ·
      1 month ago

      The downvotes are hilarious. Being able to drop down to C is one of python’s selling points, and the title of the post includes the name of the python ref implementation __C__Python.

      • celliern@lemmy.world
        link
        fedilink
        English
        arrow-up
        12
        arrow-down
        1
        ·
        1 month ago

        There is a difference being able to drop down in C and using exclusively C.

        One of the main advantage of python is being to quickly write code, and using C-based library / part of code written in C (or fortran, or rust for what it matters) when needed.

        “just write C” may lack a bit of nuance.

      • _sideffect@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        11
        ·
        1 month ago

        Exactly.

        I don’t really care, people will downvote for any number of reasons, and I know I was right, so it doesn’t bug me