What is the process of compilation and linking in Python?

Technology CommunityCategory: PythonWhat is the process of compilation and linking in Python?
VietMX Staff asked 3 years ago

Compilation: The source code in python is saved as a .py file which is then compiled into a format known as byte code, byte code is then converted to machine code. After the compilation, the code is stored in .pyc files and is regenerated when the source is updated. This process is known as compilation.

Linking: Linking is the final phase where all the functions are linked with their definitions as the linker knows where all these functions are implemented. This process is known as linking.