[Grok-dev] Re: Using 'if object' evaluates false - container
darryl at darrylcousins.net.nz
Fri Apr 13 20:56:25 EDT 2007
Changed test in Traverser to ensure that empty (and therefore boolean
False) containers are correctly traversed. Extended containertraverser
ftest to test this.
On Fri, 2007-04-13 at 23:26 +1200, Darryl Cousins wrote:
> Hey Philipp et al.,
> On Fri, 2007-04-13 at 11:40 +0200, Philipp von Weitershausen wrote:
> > Yes, just doing "if obj" when you really want to check if it's None
> > is
> > evil for precisely that reason. I once fixed an occurrence of this
> > bug
> > in Grok, it seems I missed this one. Feel free to fix this (along
> > with
> > an ftest).
> Will do.
> Best regards,
> Grok-dev mailing list
> Grok-dev at zope.org
More information about the Grok-dev