"Terry Reedy" <tjreedy at udel.edu> wrote in message news:cnm3lj$9nj$1 at sea.gmane.org... > ... return (i < 0) and (max - i) or i > # only semi-tested because I don't have negatives to test and can't force whoops, untested negative case should be max + i (or max-abs(i) as I was thinking)