Demystifying how imports work in Python

Demystifying how imports work in Python

It just so happens python abstracts away the inner workings of import statement beautifully. But are we aware of how python behaves when it encounters an import statement for a module? Better yet what is a module actually? Packages anybody? How would different import styles compare with each other. Any Best practices when importing modules. What about that __init__.py you saw the last time you read someone else's code.

Code Snippets: https://github.com/prodicus/talks/tree/master/accepted/chennaipy/october?ref=speakerdeck

Presented at ChennaiPy, October 2016 meetup

http://tasdikrahman.me/?ref=speakerdeck

99f99340cf6fe31f86e8dd0a988eec7c?s=128

Tasdik Rahman

October 22, 2016
Tweet