Too Long; Didn't Read
The Ultimate Guide To Design Patterns And Generic Composite In Python. In Python, the Composite Design Pattern is the first design pattern to consider. The traditional Abstract Base Class approach makes overloading ALL abstract interface methods mandatory. In this case, a variation of the Null Object Design Pattern worked better — the abstract Base Class defined a default implementation of each method just returning an empty Tuple. With such a high degree of variability, defining abstract methods turns out to be impractical — many resources will need to implement only a small subset of the overall 8 methods.