def set_mark(self, mark_nr, position):
        if mark_nr & 1:
            # This id marks the end of a group.
            # fix python 3 division incompatability
            #self.lastindex = mark_nr / 2 + 1
            self.lastindex = mark_nr // 2 + 1
        if mark_nr >= len(self.marks):
            self.marks.extend([None] * (mark_nr - len(self.marks) + 1))
        self.marks[mark_nr] = position
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/_sre.py/_State.set_mark/original