CPython is bytecode interpreter?

后端 未结 3 1097
小蘑菇
小蘑菇 2020-12-03 02:10

I don\'t really get the concept of \"bytecode interpreter\" in the context of CPython. Can someone shed some light over the whole picture?

Does it mean that CPython

3条回答
  •  感动是毒
    2020-12-03 02:39

    CPython is both the bytecode compiler, and interpreter (virtual machine).

    It automatically detects if no existing pre-compiler file (.pyc) exists, compiles the code, and saves it out.

提交回复
热议问题