def rotate(self, perm):
        if not isinstance(perm, Perm):
            perm = self.pgroup[perm]
            # and we know it's valid
        else:
            if perm.size != self.size:
                raise ValueError('Polyhedron and Permutation sizes differ.')
        a = perm.array_form
        corners = [self.corners[a[i]] for i in range(len(self.corners))]
        self._corners = tuple(corners)
Remove the keyed message; raise KeyError if it doesn't exist.
dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/polyhedron.py/Polyhedron.rotate--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/Maildir.remove