@staticmethod
def _cmp_open(low, item, high):
    """
        The ranges are left-closed and right-open intervals, i.e.
        value is in interval if and only if start <= value < stop
        """
    if low < high:
        return low <= item < high
    return low <= item or item < high
