MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / get

Method get

example_code/item_072.py:64–65  ·  view source on GitHub ↗
(self, y, x)

Source from the content-addressed store, hash-verified

62 self.rows.append([EMPTY] * self.width)
63
64 def get(self, y, x):
65 return self.rows[y % self.height][x % self.width]
66
67 def set(self, y, x, state):
68 self.rows[y % self.height][x % self.width] = state

Callers 1

getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected