September 2026
1051 pages
35h 4m
English
At this point, we’d like to look at modules of the standard library that usefully supplement the possibilities of screen output. These are the pprint module for clearly formatted output of complex instances, which we also used briefly in Chapter 3, Section 3.10, and the logging module for formatted output of log messages on the screen or in log files.
The modules discussed in this chapter are intended to complement the built-in print function that’s usually used and which has been described in detail in Chapter 17, Section 17.14.36.
The standard library contains the pprint module (for pretty print), which can be used for a neatly formatted representation of a Python ...
Read now
Unlock full access