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

Method dumps

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

Source from the content-addressed store, hash-verified

79 pickler = pickle._Pickler
80
81 def dumps(self, arg, proto=None, **kwargs):
82 f = io.BytesIO()
83 p = self.pickler(f, proto, **kwargs)
84 p.dump(arg)
85 f.seek(0)
86 return bytes(f.read())
87
88 @unittest.expectedFailure # TODO: RUSTPYTHON
89 def test_buffer_callback_error(self):

Callers

nothing calls this directly

Calls 3

seekMethod · 0.95
readMethod · 0.95
dumpMethod · 0.45

Tested by

no test coverage detected