[Zope] Finding an object in a folder

Phillip Hutchings sitharus at gmail.com
Thu May 26 17:20:52 EDT 2005


> Well, it doesn't distinguish between an attribute which doesn't exist
> and an attribute which has any false value.  This makes it unsuitable as
> a hasattr() replacement IMHO.

But you're asking if the object posesses an attribute, not any
question about the value of the object. I think returning false if the
value is false is potentially dangerous - I may want to retrieve a
false value.

-- 
Phillip Hutchings
http://www.sitharus.com/
sitharus at gmail.com / sitharus at sitharus.com


More information about the Zope mailing list