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

Method dump

tools/python-3.11.9-amd64/Lib/pickle.py:476–489  ·  view source on GitHub ↗

Write a pickled representation of obj to the open file.

(self, obj)

Source from the content-addressed store, hash-verified

474 self.memo.clear()
475
476 def dump(self, obj):
477 """Write a pickled representation of obj to the open file."""
478 # Check whether Pickler was initialized correctly. This is
479 # only needed to mimic the behavior of _pickle.Pickler.dump().
480 if not hasattr(self, "_file_write"):
481 raise PicklingError("Pickler.__init__() was not called by "
482 "%s.__init__()" % (self.__class__.__name__,))
483 if self.proto >= 2:
484 self.write(PROTO + pack("<B", self.proto))
485 if self.proto >= 4:
486 self.framer.start_framing()
487 self.save(obj)
488 self.write(STOP)
489 self.framer.end_framing()
490
491 def memoize(self, obj):
492 """Store an object in the memo."""

Callers 7

dump_statsMethod · 0.45
__setitem__Method · 0.45
_dumpFunction · 0.45
_dumpsFunction · 0.45
dump_statsMethod · 0.45
dump_statsMethod · 0.45
write_resultsMethod · 0.45

Calls 6

saveMethod · 0.95
PicklingErrorClass · 0.85
packFunction · 0.85
start_framingMethod · 0.80
end_framingMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected