What exactly happens in the background when the import statement is executed?

What happens when Python Modules are imported?

The import datetime statement imports a module from the Python standard library. But how does that work? And why does it work? What exactly happens in the background when the import statement is executed? In this video, you get answers to these questions.

Part 1 - It's time to understand what happens when Python Modules are imported

Part 2 - The import statement does MUCH more than you think

Written by Loek van den Ouweland on 2023-07-06.
Questions regarding this artice? You can send them to the address below.