[Python-3000] Adaption & generic functions [was Generic functions]

Guido van Rossum guido at python.org
Fri Apr 7 20:45:43 CEST 2006


On 4/7/06, Fred L. Drake, Jr. <fdrake at acm.org> wrote:
> On Friday 07 April 2006 14:33, Guido van Rossum wrote:
>  > OTOH if you really like to express implementing an interface as
>  > inheriting from that interface, what's the problem with inheriting the
>  > adapter?
>
> Ugh!  Inheritance should only be done to get implementation.  If there's value
> in default implementation of methods, a base class can be provided
> independently of the interface.

That's what I was thinking -- I was only trying to guess what Walter was after.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list