December 2009
Beginner to intermediate
360 pages
11h 12m
English
This chapter covers
Modules make reusing small chunks of code easy. The problem comes when the project grows and the code you want to reload outgrows, either physically or logically, what would fit into a single file. If having one giant module file is an unsatisfactory solution, having a host of little unconnected modules isn’t much better. The answer to this problem is to combine related modules into a package.
A module is a file containing code. A module defines a group of usually related Python functions or other objects. The name of the module is derived from the ...
Read now
Unlock full access