Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_sub
Method · 0.45
ddx_add
Method · 0.45
ddx_nul
Method · 0.45
ddx_reg
Method · 0.45
run
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected