Weird expression result

Dan Lenski dlenski at gmail.com
Mon Aug 18 13:57:53 EDT 2008


On Mon, 18 Aug 2008 18:27:53 +0200, Peter Otten wrote:

> Dan Lenski wrote:
>> How does this play with standard precedence rules?
> 
> Simple, all comparisons have the same priority:
> 
> http://docs.python.org/ref/comparisons.html
> 
> Peter

I see.  So, since the comparison operators have lower precedence than 
everything else... it won't affect any terms involving non-comparison 
operators.

Dan



More information about the Python-list mailing list