[Zope-dev] Interfaces vs ZCA concepts

Martijn Faassen faassen at startifact.com
Fri Dec 18 14:59:19 EST 2009


Martijn Faassen wrote:
[snip]
> If you do insist on taking that position, then please note that while 
> API may not be documented in zope.interface...

actually the API is documented in zope.interface's README.txt, including 
TypeError:

   If an object cannot be adapted, then a TypeError is raised::

   >>> class I(zope.interface.Interface):
   ...     pass

   >>> I(0)
   Traceback (most recent call last):
   ...
   TypeError: ('Could not adapt', 0, <InterfaceClass __main__.I>)

That documentation went in there 3 years and 7 months ago.

Regards,

Martijn



More information about the Zope-Dev mailing list