MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / PyMarshal_ReadLastObjectFromFile

Function PyMarshal_ReadLastObjectFromFile

Python/marshal.c:1132–1157  ·  view source on GitHub ↗

If we can get the size of the file up-front, and it's reasonably small, * read it in one gulp and delegate to ...FromString() instead. Much quicker * than reading a byte at a time from file; speeds .pyc imports. * CAUTION: since this may read the entire remainder of the file, don't * call it unless you know you're done with the file. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

run_pyc_fileFunction · 0.85
read_compiled_moduleFunction · 0.85

Calls 3

getfilesizeFunction · 0.85

Tested by

no test coverage detected