[Grok-dev] Re: Using 'if object' evaluates false - container objects

Darryl Cousins darryl at darrylcousins.net.nz
Fri Apr 13 07:26:51 EDT 2007

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,

More information about the Grok-dev mailing list