The adapter pattern is often used in programming when you need to adapt one interface to another. Here's a simple generic adapter class that can adapt just about any interface to just about any other. class Adapter(object): """ Adapts an object by replacing methods. Usage: dog = [...]
