@staticmethod
def _cmp_closed(low, item, high):
    """
        The ranges are closed 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
