On Wed, Jan 24, 2007 at 08:44:31PM -0500, Tres Seaver wrote:
> Note that for regularity, I assert that the calling the IFoo interface
> should allow the follwing use cases, based on the asserition that
> utilities are "zero-order" adapters, just as views are "binary order"
> adapters.

There is a very important difference.

When you do adaptation, an adapter factory gets called and you get a new
object.  (There are exceptions -- the adapter factory may do caching, or
the object you're adapting may already implement the interface.)

When you do utility lookups, you always get the same object.  No factory
ever gets invoked.

Marius Gedminas
Special bonus feature: absolutely nowhere in RetchMail's code is there an
arbitrary 3-second sleep(). Wow! What other mail retriever can say that? (Hint:
not fetchmail.)
        -- http://open.nit.ca/wiki/index.php?page=RetchMail

Attachment: signature.asc
Description: Digital signature

Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to