MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / pickle_code

Function pickle_code

tools/python-3.11.9-amd64/Lib/idlelib/rpc.py:51–55  ·  view source on GitHub ↗

Return unpickle function and tuple with marshalled co code object.

(co)

Source from the content-addressed store, hash-verified

49 return co
50
51def pickle_code(co):
52 "Return unpickle function and tuple with marshalled co code object."
53 assert isinstance(co, types.CodeType)
54 ms = marshal.dumps(co)
55 return unpickle_code, (ms,)
56
57def dumps(obj, protocol=None):
58 "Return pickled (or marshalled) string for obj."

Callers

nothing calls this directly

Calls 1

dumpsMethod · 0.45

Tested by

no test coverage detected