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

Method dumps

Lib/test/test_pickle.py:124–131  ·  view source on GitHub ↗
(self, arg, proto=None)

Source from the content-addressed store, hash-verified

122class PersistentPicklerUnpicklerMixin(object):
123
124 def dumps(self, arg, proto=None):
125 class PersPickler(self.pickler):
126 def persistent_id(subself, obj):
127 return self.persistent_id(obj)
128 f = io.BytesIO()
129 p = PersPickler(f, proto)
130 p.dump(arg)
131 return f.getvalue()
132
133 def loads(self, buf, **kwds):
134 class PersUnpickler(self.unpickler):

Callers

nothing calls this directly

Calls 3

getvalueMethod · 0.95
PersPicklerClass · 0.70
dumpMethod · 0.45

Tested by

no test coverage detected