

@classdef.method('rotate!', n='int')
@check_frozen()
def method_rotate_i(self, space, n=1):
    length = self.length()
    if (length == 0):
        return self
    if (abs(n) >= length):
        n %= length
    if (n < 0):
        n += length
    if (n == 0):
        return self
    assert (n >= 0)
    self.items_w.extend(self.items_w[:n])
    del self.items_w[:n]
    return self

dataset/ETHPy150Open topazproject/topaz/topaz/objects/arrayobject.py W_ArrayObject.method_rotate_i/original