Weird expression result

Dan Lenski dlenski at gmail.com
Mon Aug 18 19:57:53 CEST 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