Jan-08-2020, 08:34 AM
Hi,
The Python REPL is it an interpreter or a compiler?
When I have a file, let's say test.py and when I type, python test.py at the command prompt, the file get's compiled into byte code and then gets executed by the PVM.
But the same code if I input via the REPL, does it still compile and then execute or does it interpret line by line and execute?
Please clarify.
Thanks
The Python REPL is it an interpreter or a compiler?
When I have a file, let's say test.py and when I type, python test.py at the command prompt, the file get's compiled into byte code and then gets executed by the PVM.
But the same code if I input via the REPL, does it still compile and then execute or does it interpret line by line and execute?
Please clarify.
Thanks