value of: None is None is None

Thomas Jollans thomas at jollans.com
Sun Jun 27 08:04:10 EDT 2010


On 06/27/2010 01:45 PM, Lawrence D'Oliveiro wrote:
> In message <nbmdneRWl6kaibjRnZ2dnUVZ_q2dnZ2d at rcn.net>, Alan G Isaac wrote:
> 
>> Surprising for a moment, if you don't
>> immediatelyrecognize it as a chained comparison.
> 
> Bugger. So much for a Python version of this 
> <http://www.codecodex.com/wiki/Interval_Comparison_With_Wraparound>, then 
> ...

You mean like
(a <= b < c) if (a <= c) else (b >= a or b < c)
?



More information about the Python-list mailing list