[Zope3-dev] N-Tuple Adapters

Phillip J. Eby pje@telecommunity.com
Tue, 03 Jun 2003 09:26:08 -0400


At 10:27 AM 6/3/03 +0300, Steve Alexander wrote:
> > This
>>makes transitive adaptation and making new "subset" protocols (think 
>>reverse interface inheritance) easy and natural operations, not to 
>>mention fast.
>
>Would you explain a bit more about "subset protocols"?

See:

http://peak.telecommunity.com/protocol_ref/protocols-defining.html

especially the second half of the page.  In essence, being able to declare 
a subset protocol is like being able to add an interface to the base 
classes of an existing interface.  You're saying that your interface is a 
strict subset of the requirements specified by the other interface.  Zope 
interfaces can't currently do this.