[Python-3000] Abilities / Interfaces

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Nov 23 04:19:49 CET 2006


Gustavo Niemeyer wrote:

> The user of both libraries may define how Apple adapts to
> IFruit.

Sure, but then there's no need for a formal framwork
for defining interfaces and adaptation -- by making
use of duck typing, the joint user of the two libraries
can wrap things as needed to make it all work.

The proponents of adaptation seem to be making a
stronger claim, however -- that somehow you can just
register an adaptor and have all users of IFruits
automatically understand Apples. That's the part that
I fail to understand.

--
Greg


More information about the Python-3000 mailing list