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

Method save_pers

tools/python-3.11.9-amd64/Lib/pickle.py:609–619  ·  view source on GitHub ↗
(self, pid)

Source from the content-addressed store, hash-verified

607 return None
608
609 def save_pers(self, pid):
610 # Save a persistent id reference
611 if self.bin:
612 self.save(pid, save_persistent_id=False)
613 self.write(BINPERSID)
614 else:
615 try:
616 self.write(PERSID + str(pid).encode("ascii") + b'\n')
617 except UnicodeEncodeError:
618 raise PicklingError(
619 "persistent IDs in protocol 0 must be ASCII strings")
620
621 def save_reduce(self, func, args, state=None, listitems=None,
622 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