MCPcopy Index your code
hub / github.com/bslatkin/effectivepython / get

Method get

example_code/item_073.py:128–129  ·  view source on GitHub ↗
(self, y, x)

Source from the content-addressed store, hash-verified

126 self.rows.append([EMPTY] * self.width)
127
128 def get(self, y, x):
129 return self.rows[y % self.height][x % self.width]
130
131 def set(self, y, x, state):
132 self.rows[y % self.height][x % self.width] = state

Callers 15

item_042.pyFile · 0.45
item_004.pyFile · 0.45
get_first_intFunction · 0.45
__new__Method · 0.45
__new__Method · 0.45
runMethod · 0.45
simulate_pipelineFunction · 0.45
getMethod · 0.45
simulate_phased_pipelineFunction · 0.45
item_008.pyFile · 0.45
item_026.pyFile · 0.45
__get__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected