[Grok-dev] Re: Using 'if object' evaluates false - container
objects
Darryl Cousins
darryl at darrylcousins.net.nz
Fri Apr 13 20:56:25 EDT 2007
Hi,
Changed test in Traverser to ensure that empty (and therefore boolean
False) containers are correctly traversed. Extended containertraverser
ftest to test this.
Regards,
Darryl
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,
> Darryl
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
More information about the Grok-dev
mailing list