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

Method previous

Lib/shelve.py:202–205  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 return (key.decode(self.keyencoding), Unpickler(f).load())
201
202 def previous(self):
203 (key, value) = self.dict.previous()
204 f = BytesIO(value)
205 return (key.decode(self.keyencoding), Unpickler(f).load())
206
207 def first(self):
208 (key, value) = self.dict.first()

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