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

Method dump

Lib/pickle.py:503–516  ·  view source on GitHub ↗

Write a pickled representation of obj to the open file.

(self, obj)

Source from the content-addressed store, hash-verified

501 self.memo.clear()
502
503 def dump(self, obj):
504 """Write a pickled representation of obj to the open file."""
505 # Check whether Pickler was initialized correctly. This is
506 # only needed to mimic the behavior of _pickle.Pickler.dump().
507 if not hasattr(self, "_file_write"):
508 raise PicklingError("Pickler.__init__() was not called by "
509 "%s.__init__()" % (self.__class__.__name__,))
510 if self.proto >= 2:
511 self.write(PROTO + pack("<B", self.proto))
512 if self.proto >= 4:
513 self.framer.start_framing()
514 self.save(obj)
515 self.write(STOP)
516 self.framer.end_framing()
517
518 def memoize(self, obj):
519 """Store an object in the memo."""

Callers 10

mainFunction · 0.45
mainFunction · 0.45
write_library_configFunction · 0.45
update_test_planFunction · 0.45
_dumpFunction · 0.45
_dumpsFunction · 0.45
dump_statsMethod · 0.45
dump_statsMethod · 0.45
write_resultsMethod · 0.45
generate_source_filesFunction · 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