def exclude(self, minimum_address, maximum_address):
        """Exclude given range and keep the rest.

        `minimum_address` is the first word address to exclude
        (including).

        `maximum_address` is the last word address to exclude
        (excluding).

        """

        if maximum_address < minimum_address:
            raise Error('bad address range')

        minimum_address *= self.word_size_bytes
        maximum_address *= self.word_size_bytes
        self._segments.remove(minimum_address, maximum_address)
def exclude ( self , minimum_address , maximum_address ) : if maximum_address < minimum_address : raise Error ( 'bad address range' ) minimum_address *= self . word_size_bytes maximum_address *= self . word_size_bytes self . _segments . remove ( minimum_address , maximum_address )
Exclude given range and keep the rest.

        `minimum_address` is the first word address to exclude
        (including).

        `maximum_address` is the last word address to exclude
        (excluding).