On 06/27/2010 01:45 PM, Lawrence D'Oliveiro wrote: > In message <nbmdnerwl6kaibjrnz2dnuvz_q2dn...@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) ? -- http://mail.python.org/mailman/listinfo/python-list