March 2025
Intermediate to advanced
584 pages
15h 31m
English
This chapter covers
__all__ attributeModules 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.
In this chapter, we discuss Python packages as structure of directories and files on disk.
Note Quite often people speak of a “package” that combines one or more Python modules or packages into a ...
Read now
Unlock full access