Modules


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