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

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 22462

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>