Because "is" operator take precedence on ">" operator .

Le Wed, 15 Sep 2010 05:34:06 -0700 (PDT),
Yingjie Lan <lany...@yahoo.com> a écrit :

> Hi, 
> 
> I am not sure how to interprete this, in the interactive mode:
> 
> >>> 3>0 is True
> False
> >>> (3>0) is True
> True
> >>> 3> (0 is True)
> True
> 
> Why did I get the first 'False'? I'm a little confused.
> 
> Thanks in advance for anybody who shed some light on this. 
> 
> YL
> 
> 
>       
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to