[Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

Fred Drake fdrake at gmail.com
Mon Sep 8 13:30:13 EDT 2008


On Sun, Sep 7, 2008 at 3:29 PM, Chris Withers <chris at simplistix.co.uk> wrote:
> I can't see any problems with this, can anyone else?

There's the backward-compatibility issue, which is a showstopper.
There's plenty of code that does this:

    adapter = package.interfaces.IFoo(object, None)

Changing the signature as you describe would break all code that does this.


 -Fred

-- 
Fred L. Drake, Jr. <fdrake at gmail.com>
"Chaos is the score upon which reality is written." --Henry Miller


More information about the Zope-Dev mailing list