Modules


  1. Create modules
  2. path to load modules from - The module search path
  3. sys.path - the module search path
  4. Python modules are compiled
  5. How import and from work
  6. Runtime loading of modules
  7. Conditional loading of modules
  8. Duplicate importing of functions
  9. Script or library
  10. Script or library - import
  11. Script or library - from import
  12. assert to test code
  13. mycalc as a self testing module
  14. doctest
  15. Scope of import
  16. Export import
  17. Export import with __all__
  18. import module
  19. Relative path
  20. Exercise: Number guessing
  21. Exercies: Scripts and modules
  22. Exercise: Module my_sum
  23. Exercise: Convert your script to module
  24. Exercise: Add doctests to your own code