Re: Interfaces vs ZCA concepts
Martijn Faassen <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
Zope-Dev maillist - [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )