Python style guidelines

Josef Meile jmeile at hotmail.com
Thu Mar 11 16:39:59 CET 2004


>>>>>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.




More information about the Python-list mailing list