Hacking 'import'

Liad Oz Liad Oz
The presentation was given on 2024.03.18 at PyWeb-IL #105: Dataclasses and hacking 'import'.

We'll be taking a look at how python 'imports' work behind the scenes and how PYTHONPATH and sys.path affect it. Then learn how to hook into the 'import' logic and show practical (and ridiculous) applications of them.