[Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results
Chris Withers
chris at simplistix.co.uk
Mon Sep 8 13:34:33 EDT 2008
Fred Drake wrote:
> 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.
How about a new major revision of zope.interface then?
I thought the pointless yoke of backwards compatability was something
only Microsoft yearned for? ;-)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope-Dev
mailing list