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

Function _py_temp_compile

PC/layout/main.py:352–356  ·  view source on GitHub ↗
(src, name, ns, dest_dir=None, checked=True)

Source from the content-addressed store, hash-verified

350
351# name argument added to address bpo-37641
352def _py_temp_compile(src, name, ns, dest_dir=None, checked=True):
353 if not ns.precompile or src not in PY_FILES or src.parent in DATA_DIRS:
354 return None
355 dest = (dest_dir or ns.temp) / (src.stem + ".pyc")
356 return _compile_one_py(src, dest, name, optimize=2, checked=checked)
357
358
359def _write_to_zip(zf, dest, src, ns, checked=True):

Callers 1

_write_to_zipFunction · 0.85

Calls 1

_compile_one_pyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…