Back to search

Interpreted vs compiled in Python

Python source is usually compiled to bytecode first, then executed by the interpreter's virtual machine.

Python Easy Theory

Interpreted vs compiled in Python

Python source is usually compiled to bytecode first, then executed by the interpreter's virtual machine.

  • Source is not run directly
  • CPython compiles to bytecode
  • Execution still happens inside an interpreter

Interpreted vs compiled in Python