MCPcopy Index your code
hub / github.com/RustPython/RustPython / set_location

Method set_location

Lib/shelve.py:192–195  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

190 Shelf.__init__(self, dict, protocol, writeback, keyencoding)
191
192 def set_location(self, key):
193 (key, value) = self.dict.set_location(key)
194 f = BytesIO(value)
195 return (key.decode(self.keyencoding), Unpickler(f).load())
196
197 def next(self):
198 (key, value) = next(self.dict)

Callers

nothing calls this directly

Calls 4

BytesIOClass · 0.90
UnpicklerClass · 0.90
decodeMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected