[Python-3000] Adaptation vs. Generic Functions

Guido van Rossum guido at python.org
Wed Apr 5 22:47:56 CEST 2006


On 4/5/06, Tim Hochberg <tim.hochberg at cox.net> wrote:
> Walter Dörwald wrote:
> > What's still missing IMHO is a way for an adapter to defer to the next
> > adapter in the chain, i.e. something like:
[...]
> The concept seems good, but I find the implementation baffling, OK, I
> finally figured it out. It only seems to work once though -- you can't
> chain super calls. Why not simply raise a DeferToNextAdapter exception?

I haven't used adapters in years, and I don't recall seeing this in
Alex's recent posts; can either of you explain slowly what the use
case is and how it's typically used? The code fragments shown so far
aren't helping. :-(

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


More information about the Python-3000 mailing list