Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ insert
Method
insert
src/8/implementing_custom_containers/example2.py:20–22 ·
view source on GitHub ↗
(self, index, value)
Source
from the content-addressed store, hash-verified
18
del self._items[index]
19
20
def
insert(self, index, value):
21
print(
'Inserting:'
, index, value)
22
self._items.insert(index, value)
23
24
def
__len__(self):
25
print(
'Len'
)
Callers
3
example.py
File · 0.80
example3.py
File · 0.80
postimport.py
File · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected