Part V. Modules

Part V explores Python modules. Modules are packages of names that usually correspond to source files and serve as libraries of tools for use in other files and programs. We introduced modules very early (in Part I) as a way to retain and run code. Here, we fill in the remaining details on this subject, and study some advanced module-related topics, such as package (directory) imports.

Get Learning Python, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.