[Python-3000] Adaptation vs. Generic Functions
Guido van Rossum
guido at python.org
Thu Apr 6 02:08:22 CEST 2006
On 4/5/06, Walter Dörwald <walter at livinglogic.de> wrote:
> The problem with this is that it looks in the base protocol only if the
> the class can't be found in the registry of the subprotocol. This mean
> that an adapter from the subprotocol might be used, although the base
> protocol has a "better" adapter (i.e. one whose class that is nearer to
> real class of the object.
It also doesn't look like it will work right for recursive invocations
of the adapter by some implementation (as happens to be common for the
pprint example).
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list