that is it is not it (logic in Python)

Jeremy Bowers jerf at jerf.org
Fri Apr 1 17:42:30 EST 2005


On Fri, 01 Apr 2005 22:01:25 +0000, F. Petitjean wrote:

> Le Fri, 1 Apr 2005 13:39:47 -0500, Terry Reedy a écrit :
>> This is equivalent to '(that is it) and (it is not it)' which is clearly 
>> false.
>> 
>>> False   # What ?
>> 
>> Reread the ref manual on chained comparison operators.
>
> And see the date of the post :-)
> that is it  isn't it ?

Nope, nothing to do with it. Read the ref manual on chained comparision
operators.

http://www.python.org/doc/2.4/ref/comparisons.html#l2h-430

For proof, run the given code in the original post. It's not faked in the
slightest, and the manual holds the key to understanding.



More information about the Python-list mailing list