![]() They may do this with an intermediate stage.įor example, When you run myprog.py source file, the python interpreter first looks to see if any myprog.pyc exists (which is the byte-code compiled version of myprog.py), and if it is as recent or more recent than myprog.py. But interpreters take human-readable text and execute it. Compiling usually means converting to machine code which is what runs the fastest. Python is an interpreted language, as opposed to a compiled one, though the distinction can be blurry because of the presence of the bytecode compiler. There's no harm in deleting them (.pyc), but they will save compilation time if you're doing lots of processing. ![]() This code is then executed by Python's virtual machine. pyc contain the compiled bytecode of Python source files, which is what the Python interpreter compiles the source to. ![]() pyc files so it can reference them in subsequent invocations.
0 Comments
Leave a Reply. |