>>>>>a='test' >>>>>if a.find('foo'): >> >>... print "foo was found" >>... >>foo was found > > > a.find does not return a boolean, so that particular style guideline > does not apply. I know, but I found this on the Zope source, which means that there is people thinking that the False on python includes negative values.