Inheritance versus Composition in Python – Designing Modules Part – 5

Part 5 of designing modules compares inheritance versus composition, and shows how new business requirements can be added without changing existing code. Read more

Similar

The Walrus-While Python Pattern

Suppose you are reading from an unbounded data source in increments of a certain size. This is a common sort of situation; for example, reading lines from stdin. The total length of the data source is not known in advance, so the only thing to do is keep ... (more…)

Read more »