[Zope-dev] zope.interface: verifyObject vs properties

Thomas Lotze tl at gocept.com
Fri Oct 17 15:10:51 EDT 2008


"Dieter Maurer" <dieter at handshake.de> schrieb:

> "verifyObject/verifyClass" is likely not to handle the following
> case correctly:
> 
>      class I(Interface):
>        def m(...):
>          ...
> 
>      class C(object):
>        implements(I)
>        m = property(lambda self: lambda ...: ...)
> 
> 
> i.e. when a method (declared by the interface) is implemented by a property.

Ah, I see. Thank you.

Thomas

-- 
Thomas Lotze · tl at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20081017/65169bca/attachment.bin 


More information about the Zope-Dev mailing list