• BatmanAoD@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        3 days ago

        The reason C becomes relevant to Python users isn’t typically because the interpreter is written in C, but because so many important libraries (especially numpy) are implemented in C.

        • Corbin@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          Extension modules are implemented in C because the interpreter is written in C. If it were written in another language, folks would write extension modules for that language instead. Also, it would be less relevant if people used portable C bindings like cffi, which are portable to PyPy and other interpreters… but they don’t.