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

Function main

tools/python-3.11.9-amd64/Tools/scripts/umarshal.py:310–321  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

308
309
310def main():
311 # Test
312 import marshal, pprint
313 sample = {'foo': {(42, "bar", 3.14)}}
314 data = marshal.dumps(sample)
315 retval = loads(data)
316 assert retval == sample, retval
317 sample = main.__code__
318 data = marshal.dumps(sample)
319 retval = loads(data)
320 assert isinstance(retval, Code), retval
321 pprint.pprint(retval.__dict__)
322
323
324if __name__ == "__main__":

Callers 1

umarshal.pyFile · 0.70

Calls 3

loadsFunction · 0.70
dumpsMethod · 0.45
pprintMethod · 0.45

Tested by

no test coverage detected