Chapter 7. More Advanced Class Design
In this chapter, we'll look at the following recipes:
Choosing between inheritance and extension – the is-a question
Separating concerns via multiple inheritance
Leveraging Python's duck typing
Managing global and singleton objects
Using more complex structures – maps of lists
Creating a class that has orderable objects
Defining an ordered collection
Deleting from a list of mappings