Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/microsoft/qlib
/ popitem
Method
popitem
qlib/data/cache.py:97–101 ·
view source on GitHub ↗
(self, last=True)
Source
from the content-addressed store, hash-verified
95
self.od.clear()
96
97
def
popitem(self, last=True):
98
k, v = self.od.popitem(last=last)
99
self._size -= self._get_value_size(v)
100
101
return
k, v
102
103
def
pop(self, key):
104
v = self.od.pop(key)
Callers
1
__setitem__
Method · 0.95
Calls
1
_get_value_size
Method · 0.95
Tested by
no test coverage detected