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

Method dumps

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

Source from the content-addressed store, hash-verified

194class PersistentPicklerUnpicklerMixin(object):
195
196 def dumps(self, arg, proto=None):
197 class PersPickler(self.pickler):
198 def persistent_id(subself, obj):
199 return self.persistent_id(obj)
200 f = io.BytesIO()
201 p = PersPickler(f, proto)
202 p.dump(arg)
203 return f.getvalue()
204
205 def loads(self, buf, **kwds):
206 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