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

Method save_pers

Lib/pickle.py:624–634  ·  view source on GitHub ↗
(self, pid)

Source from the content-addressed store, hash-verified

622 return None
623
624 def save_pers(self, pid):
625 # Save a persistent id reference
626 if self.bin:
627 self.save(pid, save_persistent_id=False)
628 self.write(BINPERSID)
629 else:
630 try:
631 self.write(PERSID + str(pid).encode("ascii") + b'\n')
632 except UnicodeEncodeError:
633 raise PicklingError(
634 "persistent IDs in protocol 0 must be ASCII strings")
635
636 def save_reduce(self, func, args, state=None, listitems=None,
637 dictitems=None, state_setter=None, *, obj=None):

Callers 1

saveMethod · 0.95

Calls 5

saveMethod · 0.95
strFunction · 0.85
PicklingErrorClass · 0.85
writeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected