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

Marius Gedminas marius at gedmin.as
Thu Oct 23 03:56:14 EDT 2008


On Thu, Oct 23, 2008 at 08:57:30AM +0200, Thomas Lotze wrote:
> 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.

Thank you.

Marius Gedminas
-- 
Shift happens.
		-- Doppler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20081023/1fe64075/attachment.bin 


More information about the Zope-Dev mailing list