Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22849

Doug Hellmann: abc — Abstract Base Classes — PyMOTW 3

$
0
0
Abstract base classes are a form of interface checking more strict than individual hasattr() checks for particular methods. By defining an abstract base class, a common API can be established for a set of subclasses. This capability is especially useful in situations where someone less familiar with the source for an application is going to … Continue reading abc — Abstract Base Classes — PyMOTW 3

Viewing all articles
Browse latest Browse all 22849

Trending Articles