Boris Borcic wrote:
> I am surprised nobody pointed out explicitely that
>
> True==1 and False==0
>   
Several of us did indeed point this out by saying that bool's are a
subclass of ints.
> so that for instance
>
> 5*(True+True)==10
>
> and even (but implementation-dependent) :
>
> 5*(True+True) is 10
>
> BB
>
>   

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

Reply via email to