I am trying to use
__getitem__(self, x, y):
on my Matrix class, but it seems to me it doesn\'t work (I still don\'t know very well to use p
No, __getitem__ just takes one argument (in addition to self). In the case of matrix[0, 0], the argument is the tuple (0, 0).
__getitem__
self
matrix[0, 0]
(0, 0)