On Wed, Sep 26, 2007 at 09:09:37PM -0400, Tres Seaver wrote: > Why does the caller care? She just wants an object which will provide > the 'IFoo' contract on behalf of the passed context. If 'x' is capable > of providing 'IFoo' without help, then failing (or worse, returning a > less-specific factory result) when calling 'getAdapter' is the Wrong > Thing (a "least surprise" violation, if nothing else).
FWIW it was a big surprise to me when I discovered that IFoo(x) has different semantics from getAdapter(x, IFoo). Marius Gedminas -- C is for Cookies. Perl is even better for Cookies.
signature.asc
Description: Digital signature
_______________________________________________ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com