Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ get
Method
get
example_code/item_074.py:62–63 ·
view source on GitHub ↗
(self, y, x)
Source
from the content-addressed store, hash-verified
60
self.rows.append([EMPTY] * self.width)
61
62
def
get(self, y, x):
63
return
self.rows[y % self.height][x % self.width]
64
65
def
set(self, y, x, state):
66
self.rows[y % self.height][x % self.width] = state
Callers
1
get
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected