What Happens When you Import a Python Module?
Deep dive into the import system
Published in
7 min readAug 30, 2022
Reusability is one of the key metrics to measure the quality of the code. It is the extent to which code can be used in different programs with minimal change. In Python, we use import
to import code from a module. But have you ever been curious about how import
is implemented behind the scenes? In this article, we will deep dive…