June 2017
Beginner to intermediate
274 pages
6h 49m
English
If we want Python to be able to import all the package's modules using import* syntax, we have to tell it the names of all those modules.
To do this, we add the module names to a list called __all__ in the init file as shown in the following code:

You might be wondering why we need to do this manually rather than ...
Read now
Unlock full access