***********************
Your mail has been scanned by InterScan MSS.
***********************


On Thursday 26 October 2006 02:56, John Salerno wrote:
>  >>> s = 'hello'
>  >>> s == True
> False
>  >>> if s:
>         print 'hi'
>
this isn't only a python behavior.
the  "if" test is valid for all non-zero variables. only None, 0 and False 
make the condition to jump over.

F


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to