umm... looks like it should've been: Comparison can be chained, and is equivalent to a sequence of comparisons with âandâ in between. For example, âx<y<=zâ is effectively â(x<y) and (y<=z)â
Xah [EMAIL PROTECTED] â http://xahlee.org/ Terry Reedy wrote: > >Comparisons can be chained, and is evaluated from left to right. For > >example, x < y <= z is equivalent to (x < y) <= z. > > The proposed 'correction' above is incorrect and should be ignored. > > >>> x,y,z = 2,3,1 > >>> x<y<=z > 0 > >>> (x<y)<=z > 1 > > Terry J. Reedy -- http://mail.python.org/mailman/listinfo/python-list