def __iter__(self):
        yield self.match
        raise StopIteration
Return the match method once, then stop
dataset/ETHPy150Open wevoteeducation/WeVoteBase/wevote_functions/models.py/switch.__iter__