MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / first

Method first

tools/python-3.11.9-amd64/Lib/shelve.py:207–210  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

205 return (key.decode(self.keyencoding), Unpickler(f).load())
206
207 def first(self):
208 (key, value) = self.dict.first()
209 f = BytesIO(value)
210 return (key.decode(self.keyencoding), Unpickler(f).load())
211
212 def last(self):
213 (key, value) = self.dict.last()

Callers

nothing calls this directly

Calls 3

BytesIOClass · 0.90
decodeMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected