Rotationsliste Python

class Rotational_List(list):
    def select_first(self):
        self.append(self[0])
        result = self[0]
        del self[0]
        return result
M4hbod