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

Function _compile

Lib/codeop.py:77–81  ·  view source on GitHub ↗
(source, filename, symbol, incomplete_input=True, *, flags=0)

Source from the content-addressed store, hash-verified

75 return compiler(source, filename, symbol, incomplete_input=False)
76
77def _compile(source, filename, symbol, incomplete_input=True, *, flags=0):
78 if incomplete_input:
79 flags |= PyCF_ALLOW_INCOMPLETE_INPUT
80 flags |= PyCF_DONT_IMPLY_DEDENT
81 return compile(source, filename, symbol, flags)
82
83def compile_command(source, filename="<input>", symbol="single", flags=0):
84 r"""Compile a command and determine whether it is incomplete.

Callers

nothing calls this directly

Calls 1

compileFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…