MCPcopy Index your code
hub / github.com/RustPython/RustPython / dumps

Method dumps

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

Source from the content-addressed store, hash-verified

104 unpickler = pickle._Unpickler
105
106 def dumps(self, arg, proto=None, **kwargs):
107 f = io.BytesIO()
108 p = self.pickler(f, proto, **kwargs)
109 p.dump(arg)
110 f.seek(0)
111 return bytes(f.read())
112
113 def loads(self, buf, **kwds):
114 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
dumpsMethod · 0.45
checkMethod · 0.45
test_unpickler_superMethod · 0.45
check_unpicklerMethod · 0.45

Calls 3

seekMethod · 0.95
readMethod · 0.95
dumpMethod · 0.45

Tested by

no test coverage detected