June 2019
Beginner to intermediate
770 pages
19h 24m
English
The core of the abstract base class (ABC) definition is defined in a module named abc. This contains the required decorators and metaclasses to create abstractions. Other classes rely on these definitions. The collections.abc module uses the abc module to create abstractions focused on collections. We'll also look at the numbers module, because it contains ABCs for numeric types. There are ABCs for I/O in the io module, too.
An abstract base class has the following features:
Read now
Unlock full access