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

Function fake_set

example_code/item_071.py:169–171  ·  view source on GitHub ↗
(y, x, state)

Source from the content-addressed store, hash-verified

167 return ALIVE if (y, x) in alive else EMPTY
168
169def fake_set(y, x, state):
170 global new_state
171 new_state = state
172
173# Stay alive
174step_cell(10, 5, fake_get, fake_set)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected