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

Thomas Lotze thomas at thomas-lotze.de
Thu Oct 23 02:57:30 EDT 2008


Jim Fulton wrote:

> I would change it to just use getattr rather than hasattr.
> 
> try:
>     getattr(ob, name)
> except AttributeError:
>     return False
> ...

Given the controversy about our original proposal, I think I'll just
implement Jim's suggestion. I'll do so as soon as possible.

-- 
Thomas





More information about the Zope-Dev mailing list