MCPcopy Create free account
hub / github.com/ActiveState/code / __getitem__

Method __getitem__

recipes/Python/496863_zmatrixpy/recipe-496863.py:27–29  ·  view source on GitHub ↗

x.__getitem__(i) <==> x[i]

(self, index)

Source from the content-addressed store, hash-verified

25 return len(self.__data)
26
27 def __getitem__(self, index):
28 'x.__getitem__(i) <==> x[i]'
29 return self.__data[index]
30
31 def __setitem__(self, index, value):
32 'x.__setitem__(i, y) <==> x[i]=y'

Callers 2

getMethod · 0.45
getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected