MCPcopy Index your code
hub / github.com/python/cpython / _cache_bytecode

Method _cache_bytecode

Lib/importlib/_bootstrap_external.py:943–946  ·  view source on GitHub ↗
(self, source_path, bytecode_path, data)

Source from the content-addressed store, hash-verified

941 return {'mtime': st.st_mtime, 'size': st.st_size}
942
943 def _cache_bytecode(self, source_path, bytecode_path, data):
944 # Adapt between the two APIs
945 mode = _calc_mode(source_path)
946 return self.set_data(bytecode_path, data, _mode=mode)
947
948 def set_data(self, path, data, *, _mode=0o666):
949 """Write bytes data to a file."""

Callers

nothing calls this directly

Calls 2

set_dataMethod · 0.95
_calc_modeFunction · 0.85

Tested by

no test coverage detected