On 27/05/05, Paul Winkler <[EMAIL PROTECTED]> wrote: > On Fri, May 27, 2005 at 09:20:52AM +1200, Phillip Hutchings wrote: > > > 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. > > "But" what? You just said the same thing that I said :-)
Sorry, shouldn't reply to things at 9am ;) Anyway, I agree with you, it is broken as the distinction is critical. -- Phillip Hutchings http://www.sitharus.com/ [EMAIL PROTECTED] / [EMAIL PROTECTED] _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )