160
160
must be a duck.") By emphasizing interfaces rather than specific types,
161
161
well-designed code improves its flexibility by allowing polymorphic
162
162
substitution. Duck-typing avoids tests using :func:`type` or
168
168
Easier to ask for forgiveness than permission. This common Python coding