This document was originally posted as a reply to a c.l.py post asking for more information on adaptation vs type checking for Python. It was well received, and I thought it deserved a spot here. This is a revised edition, with more information and some clarifications.
Adaptation is the act of taking one object and making it conform to a given protocol (or interface). Adaptation is the key to
↧