Oct-18-2020, 12:54 PM
(Oct-18-2020, 07:09 AM)Gribouillis Wrote:jamesyuan Wrote:If the installed modules are binary, does interpreter also need to convert it to bytecode at first when I import them?I don't understand what you mean by 'binary'. If (C extension) modules are distributed as shared libraries (.dll or .so), they are not converted to python bytecode. You could also have compiled .pyc file on the module path without their python source file. They would be imported as well.
jamesyan Wrote:Does compiled C means the code is written in Python and compiled by C compiler.No, standard python code cannot be compiled by a C compiler.
Thanks a lot, so, in general, all code(written by yourself and from third-party) will be converted into bytecode by interpreter, and then executed in virtual machine, right?