I have the following Python list (can also be a tuple):
myList = [\'foo\', \'bar\', \'baz\', \'quux\']
I can say
>>&g
>>> map(myList.__getitem__, (2,2,1,3)) ('baz', 'baz', 'bar', 'quux')
You can also create your own List class which supports tuples as arguments to __getitem__ if you want to be able to do myList[(2,2,1,3)].
List
__getitem__
myList[(2,2,1,3)]