

@classdef.method('last')
def method_last(self, space, w_count=None):
    if (w_count is not None):
        count = Coerce.int(space, w_count)
        if (count < 0):
            raise space.error(space.w_ArgumentError, 'negative array size')
        start = (self.length() - count)
        if (start < 0):
            start = 0
        return space.newarray(self.items_w[start:])
    if (self.length() == 0):
        return space.w_nil
    else:
        return w_count.items_w[(self.length() - 1)]

dataset/ETHPy150Open topazproject/topaz/topaz/objects/arrayobject.py W_ArrayObject.method_last/VarMisuse@132/162 `self`->`w_count`