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

Function get_pyc

Lib/test/test_compileall.py:40–44  ·  view source on GitHub ↗
(script, opt)

Source from the content-addressed store, hash-verified

38
39
40def get_pyc(script, opt):
41 if not opt:
42 # Replace None and 0 with ''
43 opt = ''
44 return importlib.util.cache_from_source(script, optimization=opt)
45
46
47def get_pycs(script):

Callers 3

get_pycsFunction · 0.85
test_only_two_levelsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…