class MyList(list):

    def __getitem__(self, key):
        print('get ' + str(key))
return super(MyList, self).__getitem__(key)

def __setitem__(self, key, value):
    print('set ' + str(key) + ', ' + str(value))
return super(MyList, self).__setitem__(key, value)
Tuple unpacking order changes values assigned