Le Fri, 1 Apr 2005 13:39:47 -0500, Terry Reedy a écrit :
> 
> "F. Petitjean" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> 
>>>>> iterable = range(10)
>>>>> it = iter(iterable)
>>>>> that = iter(it)
>>>>> that is it
>> True    # Good!
>>>>> that is it is not it
> 
> 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 ?
> 
> Terry J. Reedy
> 
> 
> 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to