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

Method get

Lib/pickle.py:537–544  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

535
536 # Return a GET (BINGET, LONG_BINGET) opcode string, with argument i.
537 def get(self, i):
538 if self.bin:
539 if i < 256:
540 return BINGET + pack("<B", i)
541 else:
542 return LONG_BINGET + pack("<I", i)
543
544 return GET + repr(i).encode("ascii") + b'\n'
545
546 def save(self, obj, save_persistent_id=True):
547 self.framer.commit_frame()

Callers 6

saveMethod · 0.95
save_reduceMethod · 0.95
save_tupleMethod · 0.95
save_frozensetMethod · 0.95
save_globalMethod · 0.45
get_extensionMethod · 0.45

Calls 3

packFunction · 0.90
reprFunction · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected