MCPcopy Index your code
hub / github.com/python/cpython / get

Method get

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

Source from the content-addressed store, hash-verified

551
552 # Return a GET (BINGET, LONG_BINGET) opcode string, with argument i.
553 def get(self, i):
554 if self.bin:
555 if i < 256:
556 return BINGET + pack("<B", i)
557 else:
558 return LONG_BINGET + pack("<I", i)
559
560 return GET + repr(i).encode("ascii") + b'\n'
561
562 def save(self, obj, save_persistent_id=True):
563 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 2

packFunction · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected