[Python] Why can't pure Python be fully compiled?

Discussão em 'Python' iniciado por Stack, Julho 18, 2025.

  1. Stack

    Stack Membro Participativo

    Why can't pure Python be fully compiled? Compiled or interpreted is a trait of the implementation, not the language. So shouldn't there be some Python implementation that is fully before-hand compiled to native code? What makes (pure) Python so difficult to compile?

    I know there are things like PyPy and Cython but as I understand it those are not pure Python and require things like type annotations, etc.

    thanks

    Fully compiled meaning compiled before-hand to native code, like C or C++ or Lisp.

    Continue reading...

Compartilhe esta Página