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

Method dumps

Lib/test/test_pickle.py:88–93  ·  view source on GitHub ↗
(self, arg, proto=None, **kwargs)

Source from the content-addressed store, hash-verified

86 unpickler = pickle._Unpickler
87
88 def dumps(self, arg, proto=None, **kwargs):
89 f = io.BytesIO()
90 p = self.pickler(f, proto, **kwargs)
91 p.dump(arg)
92 f.seek(0)
93 return bytes(f.read())
94
95 def loads(self, buf, **kwds):
96 f = io.BytesIO(buf)

Callers 15

test_pickleMethod · 0.45
test_pickleMethod · 0.45
test_pickleMethod · 0.45
test_pickleMethod · 0.45
test_pickleMethod · 0.45
complex_scriptFunction · 0.45
test_marshalFunction · 0.45
test_pickleFunction · 0.45
test_pickle_roundtripMethod · 0.45

Calls 3

seekMethod · 0.95
readMethod · 0.95
dumpMethod · 0.45

Tested by

no test coverage detected