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

Method set

recipes/Python/578372_COW_with_DDX/recipe-578372.py:46–50  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

44 return 0
45
46 def set(self, value):
47 if value:
48 self.mem[self.pos] = value
49 elif self.pos in self.mem:
50 del self.mem[self.pos]
51
52 def inc(self):
53 self.pos += 1

Callers 5

ddx_subMethod · 0.45
ddx_addMethod · 0.45
ddx_nulMethod · 0.45
ddx_regMethod · 0.45
runFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected