def pop(self):
        regions = self.get()

        # find a non-None mark in the ring
        start = self.index
        while True:
            self.index -= 1
            if self.index < 0:
                self.index = self.MARK_RING_SIZE - 1
            if self.get() or self.index == start:
                break
        self.display()
        return regions
dataset/ETHPy150Open grundprinzip/sublemacspro/jove.py/MarkRing.pop/original