Python Interpreter Internals
Internals of Python Interpreter (VM):
- Python source code is compiled to byte code.
- Byte code is routed to virtual machine.
Byte Code Compilation:
from source code to
The .pyc file contains
Python checks time stamps of source code and byte code to know when it must recompile.
Python Virtual Machine:
Python virtual machine read both byte code and library modules to execute the code on the machine.
Python is dynamic typing, which means it determines data types on the runtime.